if while status is empty.. call again

This commit is contained in:
Heavybullets8 2022-08-11 22:42:43 -06:00
parent c45bf0a588
commit 4469d96cb6

View File

@ -15,7 +15,7 @@ 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
((while_count++))
echo -e "$while_count\n$while_status" > temp.txt
[[ -z $while_status ]] && continue || echo -e "$while_count\n$while_status" > temp.txt
else
echo "Middlewared timed out. Consider setting a lower number for async applications"
continue