Skip to content

Commit 265220f

Browse files
committed
bash -> dash syntax
1 parent b4004c9 commit 265220f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ echo "IMAGE_NAME: $IMAGE_NAME"
1313
# if that's the case use the last tag rather than 'master'
1414
# this is because SOURCE_BRANCH is later injected into migrator.go and used as a version identifier
1515
# a little bit more user friendly than master and commit sha/date
16-
if [[ "$SOURCE_BRANCH" == "master" ]]; then
16+
if [ "$SOURCE_BRANCH" = "master" ]; then
1717
TAGS=$(git tag --contains $SOURCE_COMMIT 2> /dev/null)
18-
if [[ $? -eq 0 ]]; then
18+
if [ $? -eq 0 ]; then
1919
SOURCE_BRANCH=$(echo "$TAGS" | tail -1)
2020
echo "Changed master to $SOURCE_BRANCH"
2121
fi

0 commit comments

Comments
 (0)