Skip to content

Commit 2f27e53

Browse files
authored
Merge pull request #446 from Paraphraser/20211116-menu-master
20211116 Menu - master branch - quote variables in expression
2 parents d958697 + 94444af commit 2f27e53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

menu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ function check_git_updates()
125125
REMOTE=$(git rev-parse "$UPSTREAM")
126126
BASE=$(git merge-base @ "$UPSTREAM")
127127

128-
if [ $LOCAL = $REMOTE ]; then
128+
if [ "$LOCAL" = "$REMOTE" ]; then
129129
echo "Up-to-date"
130-
elif [ $LOCAL = $BASE ]; then
130+
elif [ "$LOCAL" = "$BASE" ]; then
131131
echo "Need to pull"
132-
elif [ $REMOTE = $BASE ]; then
132+
elif [ "$REMOTE" = "$BASE" ]; then
133133
echo "Need to push"
134134
else
135135
echo "Diverged"

0 commit comments

Comments
 (0)