From 06f0f7ea3aac75c4c53116794d4b1a6ff680cdc0 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 11 Aug 2022 01:48:31 -0600 Subject: [PATCH] fix status check --- functions/update_apps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index bc44d24c..339fb7bf 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -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)