if while status is empty.. call again
This commit is contained in:
parent
c45bf0a588
commit
4469d96cb6
@ -15,7 +15,7 @@ while true
|
|||||||
do
|
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
|
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++))
|
((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
|
else
|
||||||
echo "Middlewared timed out. Consider setting a lower number for async applications"
|
echo "Middlewared timed out. Consider setting a lower number for async applications"
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user