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.
2 parents d958697 + 94444af commit 2f27e53Copy full SHA for 2f27e53
menu.sh
@@ -125,11 +125,11 @@ function check_git_updates()
125
REMOTE=$(git rev-parse "$UPSTREAM")
126
BASE=$(git merge-base @ "$UPSTREAM")
127
128
- if [ $LOCAL = $REMOTE ]; then
+ if [ "$LOCAL" = "$REMOTE" ]; then
129
echo "Up-to-date"
130
- elif [ $LOCAL = $BASE ]; then
+ elif [ "$LOCAL" = "$BASE" ]; then
131
echo "Need to pull"
132
- elif [ $REMOTE = $BASE ]; then
+ elif [ "$REMOTE" = "$BASE" ]; then
133
echo "Need to push"
134
else
135
echo "Diverged"
0 commit comments