From d926bf938d46d164e708473801a6019d11223363 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 11 Aug 2022 20:51:42 -0600 Subject: [PATCH] only enter loop if status is not deploying --- functions/update_apps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index b87e8a18..99d169fa 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -175,7 +175,7 @@ if [[ $rollback == "true" || "$startstatus" == "STOPPED" ]]; then do if [[ $count -lt 1 ]]; then old_status=$(grep "^$app_name," temp.txt) - else + elif [[ $status != "DEPLOYING" ]]; then before_loop=$(head -n 1 temp.txt) new_status=$old_status current_loop=0