fix rollback_app logic
This commit is contained in:
parent
def11937b8
commit
fbdcf88a99
@ -283,7 +283,8 @@ export -f after_update_actions
|
|||||||
|
|
||||||
rollback_app(){
|
rollback_app(){
|
||||||
count=0
|
count=0
|
||||||
while [[ $update_avail != "true" ]]
|
update_avail=$(grep "^$app_name," all_app_status | awk -F ',' '{print $3}')
|
||||||
|
while [[ $update_avail == "false" ]]
|
||||||
do
|
do
|
||||||
update_avail=$(grep "^$app_name," all_app_status | awk -F ',' '{print $3}')
|
update_avail=$(grep "^$app_name," all_app_status | awk -F ',' '{print $3}')
|
||||||
if [[ $count -gt 2 ]]; then # If failed to rollback app 3 times, return failure to parent shell
|
if [[ $count -gt 2 ]]; then # If failed to rollback app 3 times, return failure to parent shell
|
||||||
|
Loading…
Reference in New Issue
Block a user