Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jul 20, 2024
1 parent 34a17bf commit 4580609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function stop(){
fi

state=$(getState $instanceId)
if [ "$state" == "\"stopped\"" || "$state" == "\"stopping\"" ]; then
if [[ "$state" == "\"stopped\"" || "$state" == "\"stopping\"" ]]; then
echo "The instance is already stopped"
exit 1
fi
Expand Down

0 comments on commit 4580609

Please sign in to comment.