return codes for failures

This commit is contained in:
Heavybullets8 2022-08-09 17:52:11 -06:00
parent b8616e988c
commit ad4f507f6f

View File

@ -137,9 +137,11 @@ do
updated=$(grep "^$app_name," temp.txt | awk -F ',' '{print $3}') updated=$(grep "^$app_name," temp.txt | awk -F ',' '{print $3}')
if cli -c 'app chart_release upgrade release_name=''"'"$app_name"'"' &> /dev/null || [[ $updated == "false" ]]; then if cli -c 'app chart_release upgrade release_name=''"'"$app_name"'"' &> /dev/null || [[ $updated == "false" ]]; then
break break
else elif [[ $count -lt 3 ]]; then
((count++)) ((count++))
sleep 5 sleep 5
else
return 1
fi fi
done done
} }