We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4004c9 commit 265220fCopy full SHA for 265220f
hooks/build
@@ -13,9 +13,9 @@ echo "IMAGE_NAME: $IMAGE_NAME"
13
# if that's the case use the last tag rather than 'master'
14
# this is because SOURCE_BRANCH is later injected into migrator.go and used as a version identifier
15
# a little bit more user friendly than master and commit sha/date
16
-if [[ "$SOURCE_BRANCH" == "master" ]]; then
+if [ "$SOURCE_BRANCH" = "master" ]; then
17
TAGS=$(git tag --contains $SOURCE_COMMIT 2> /dev/null)
18
- if [[ $? -eq 0 ]]; then
+ if [ $? -eq 0 ]; then
19
SOURCE_BRANCH=$(echo "$TAGS" | tail -1)
20
echo "Changed master to $SOURCE_BRANCH"
21
fi
0 commit comments