From ad4f507f6f1070af89bdcd969c7d5375e429248f Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 9 Aug 2022 17:52:11 -0600 Subject: [PATCH] return codes for failures --- functions/update_apps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index f5c9e086..ce410810 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -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 }