From 4580609554b3ffc67c2534b9d2ec98f6e578356f Mon Sep 17 00:00:00 2001 From: hiroTochigi Date: Fri, 19 Jul 2024 23:09:50 -0500 Subject: [PATCH] bug fix --- src/aws/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aws/stop.sh b/src/aws/stop.sh index f4585fed..e5973cc0 100644 --- a/src/aws/stop.sh +++ b/src/aws/stop.sh @@ -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