From 54e4c3876e4ca7037511f8988ba4a5d9c49e7228 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 22:51:58 -0600 Subject: [PATCH] use its own count --- functions/update_apps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 8397f580..74012adc 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -58,10 +58,12 @@ echo "Asynchronous Updates: $update_limit" # echo it=0 +while_count=0 while true do 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 -e "$it\n$while_status" > temp.txt + ((while_count++)) + echo -e "$while_count\n$while_status" > temp.txt else echo "Middlewared timed out. Consider setting a lower number for async applications" continue