unset array only if app prev failed

This commit is contained in:
Heavybullets8 2022-09-06 20:15:27 -06:00
parent 9ac0c78dae
commit 7a40e12cf9

View File

@ -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