fix status check
This commit is contained in:
parent
bef42eaaeb
commit
06f0f7ea3a
@ -214,6 +214,7 @@ if [[ $rollback == "true" || "$startstatus" == "STOPPED" ]]; then
|
|||||||
old_status=$(grep "^$app_name," temp.txt)
|
old_status=$(grep "^$app_name," temp.txt)
|
||||||
else
|
else
|
||||||
before_loop=$(head -n 1 temp.txt)
|
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
|
until [[ "$new_status" != "$old_status" || $current_loop -gt 3 ]] # Wait for a change in the file BEFORE continuing
|
||||||
do
|
do
|
||||||
new_status=$(grep "^$app_name," temp.txt)
|
new_status=$(grep "^$app_name," temp.txt)
|
||||||
|
Loading…
Reference in New Issue
Block a user