unset array only if app prev failed
This commit is contained in:
parent
9ac0c78dae
commit
7a40e12cf9
@ -35,10 +35,10 @@ do
|
|||||||
if [[ "$failed_ver" == "$new_full_ver" ]] ; then
|
if [[ "$failed_ver" == "$new_full_ver" ]] ; then
|
||||||
echo -e "\n$app_name"
|
echo -e "\n$app_name"
|
||||||
echo -e "Skipping previously failed version:\n$new_full_ver"
|
echo -e "Skipping previously failed version:\n$new_full_ver"
|
||||||
|
unset "array[$index]"
|
||||||
else
|
else
|
||||||
sed -i /"$app_name",/d failed
|
sed -i /"$app_name",/d failed
|
||||||
fi
|
fi
|
||||||
unset "array[$index]"
|
|
||||||
fi
|
fi
|
||||||
((index++))
|
((index++))
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user