From 2e146d1e581db8e44181b1b254b3e19a4af37dc5 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 18:57:50 -0600 Subject: [PATCH] if status check times out, try again immediately --- functions/update_apps.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 44e78211..20095e28 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -17,8 +17,11 @@ rm trigger &>/dev/null while true do if [[ -f trigger ]]; then - while_status=$(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,status' 2>/dev/null) - echo "$while_status" > temp.txt + if while_status=$(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,status' 2>/dev/null) ; then + echo "$while_status" > temp.txt + else + continue + fi fi proc_count=${#processes[@]} count=0