Skip to content

Commit

Permalink
Fix input branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmullen authored Jun 23, 2020
1 parent bc3f41f commit f6e32e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pass () {
}

## Check if on required branch
if [[ ! -z INPUT_BRANCH ]]; then
if [[ ! -z "${INPUT_BRANCH}" ]]; then
echo "Check for submodule on branch ${INPUT_BRANCH}"
BRANCHES=`git branch -r --contains ${SUBMODULE_HASH}`
echo "${BRANCHES}" | grep "/${INPUT_BRANCH}$" || fail "Submodule ${INPUT_PATH} Hash ${SUBMODULE_HASH} is not on branch ${INPUT_BRANCH}"
Expand Down

0 comments on commit f6e32e5

Please sign in to comment.