Skip to content

Commit 0111f92

Browse files
committed
Use == to compare strings in bash
1 parent 1caae06 commit 0111f92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/update.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ cd uglify/
2727

2828
PREV_VERSION=$(jq -r '.version' package.json)
2929

30-
if [ "$VERSION" -eq "$PREV_VERSION" ]; then
31-
echo "Already on version $VERSION, no update needed"
30+
if [ "$VERSION" == "$PREV_VERSION" ]; then
31+
echo "Already on the latest version, no update needed"
3232
exit 0
3333
fi
3434

0 commit comments

Comments
 (0)