Skip to content

Commit 0fd1807

Browse files
committed
Fix STAGE deteciton command
1 parent e833273 commit 0fd1807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/build_deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ IMAGE_TAG=${IMAGE_TAG-$GIT_REV_SHORT}
99

1010
STAGE=false
1111

12-
if [[ $(git --no-pager log --oneline -1) == *[STAGE]* ]]; then
12+
if git --no-pager log -1 --format='%h %s' | grep -Fq '[STAGE]'; then
1313
echo "This commit is flagged with [STAGE] and won't go to production"
1414
STAGE=true
1515
fi

0 commit comments

Comments
 (0)