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}')
if cli -c 'app chart_release upgrade release_name=''"'"$app_name"'"' &> /dev/null || [[ $updated == "false" ]]; then
break
else
elif [[ $count -lt 3 ]]; then
((count++))
sleep 5
else
return 1
fi
done
}