We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fa5b8f commit f1cc385Copy full SHA for f1cc385
1 file changed
scripts/conditional-deploy.sh
@@ -10,13 +10,13 @@ LOCAL=$(git rev-parse @)
10
REMOTE=$(git rev-parse "$UPSTREAM")
11
BASE=$(git merge-base @ "$UPSTREAM")
12
13
-if [ $LOCAL = $REMOTE ]; then
+if [ "$LOCAL" = "$REMOTE" ]; then
14
true
15
# echo "$(date --utc +%FT%TZ): No changes detected in git"
16
-elif [ $LOCAL = $BASE ]; then
+elif [ "$LOCAL" = "$BASE" ]; then
17
git pull
18
scripts/deploy.sh
19
-elif [ $REMOTE = $BASE ]; then
+elif [ "$REMOTE" = "$BASE" ]; then
20
echo "$(date --utc +%FT%TZ): Local changes detected, you may need to stash"
21
else
22
echo "$(date --utc +%FT%TZ): Git is diverged, this is unexpected."
0 commit comments