return codes for failures
This commit is contained in:
parent
b8616e988c
commit
ad4f507f6f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user