fix status check

This commit is contained in:
Heavybullets8 2022-08-11 01:48:31 -06:00
parent bef42eaaeb
commit 06f0f7ea3a

View File

@ -214,6 +214,7 @@ if [[ $rollback == "true" || "$startstatus" == "STOPPED" ]]; then
old_status=$(grep "^$app_name," temp.txt)
else
before_loop=$(head -n 1 temp.txt)
new_status=old_status
until [[ "$new_status" != "$old_status" || $current_loop -gt 3 ]] # Wait for a change in the file BEFORE continuing
do
new_status=$(grep "^$app_name," temp.txt)