Skip to content

Commit

Permalink
change if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikun.hyk committed Jan 16, 2024
1 parent c2d3f65 commit bf00278
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ function version_compare() {
fi
}
result=$(version_compare "$LOCAL_VERSION" "$REQUIRED_VERSION")
if [ $result == 0 ]
then
if [ "$result" == 0 ]; then
echo 'Nodejs checked, serverless-devs installing.'
npm i @serverless-devs/s -g --registry=https://registry.npmmirror.com
s config add --AccountID $1 --AccessKeyID $2 --AccessKeySecret $3 -a $4 -f
Expand Down

0 comments on commit bf00278

Please sign in to comment.