From 7a40e12cf9088512416e4978548721111ea853aa Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 6 Sep 2022 20:15:27 -0600 Subject: [PATCH] unset array only if app prev failed --- functions/update_apps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 812f4123..378d3f75 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -35,10 +35,10 @@ do if [[ "$failed_ver" == "$new_full_ver" ]] ; then echo -e "\n$app_name" echo -e "Skipping previously failed version:\n$new_full_ver" + unset "array[$index]" else sed -i /"$app_name",/d failed fi - unset "array[$index]" fi ((index++)) done