Skip to content

Commit

Permalink
Update stop.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Jul 25, 2024
1 parent 50cc413 commit 0325129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function stop(){
balloonName=$(setBalloonName "$1")
if ! isBalloonNameValid "$balloonName"; then
echo "Please provide a valid balloon name"
exit 0
exit 1
fi

instanceId=$(getValueByAttribute $balloonName instanceId)
Expand All @@ -20,7 +20,7 @@ function stop(){
state=$(getState $instanceId)
if [[ "$state" == "\"stopped\"" || "$state" == "\"stopping\"" ]]; then
echo "The instance is already stopped"
exit 1
exit 0
fi

groupName=$(getValueByAttribute $balloonName groupName)
Expand Down

0 comments on commit 0325129

Please sign in to comment.