Skip to content

Commit

Permalink
feat: ignore the terminated states currently
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Aug 1, 2024
1 parent 8ca0b8a commit c48491d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function up {
instanceState=$(checkInstanceState $instanceId)
fi

if [ -z "$instanceId" ] || [ "$instanceState" = "terminated" ]; then
if [ -z "$instanceId" ]; then
instanceId=$(createEc2 | getValueByKeyword InstanceId)
echo "Creating and running EC2 instance..."

Expand Down

0 comments on commit c48491d

Please sign in to comment.