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