Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
compare operator
Browse files Browse the repository at this point in the history
Using one compare operator is better in shell.
In bash it seems to doesn't matter, but shell throws a error here
scripts/update.sh: 14: [: 2.5.5: unexpected operator
  • Loading branch information
foorb committed Oct 6, 2015
1 parent 714f4e3 commit 65a3549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "Searching for updates..."
git fetch --tags origin
latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")

if [ "$currentVersion" == "$latestTag" ]; then
if [ "$currentVersion" = "$latestTag" ]; then
echo "\nYou already have the latest version."
else
echo "\nUpdating $currentVersion to $latestTag..."
Expand Down

0 comments on commit 65a3549

Please sign in to comment.