only enter loop if status is not deploying

This commit is contained in:
Heavybullets8 2022-08-11 20:51:42 -06:00
parent e2942dd626
commit d926bf938d

View File

@ -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