removed variable

This commit is contained in:
Heavybullets8 2022-08-04 20:29:06 -06:00
parent d448916d5b
commit e496fc4c14

View File

@ -26,13 +26,11 @@ do
if [[ "$proc_count" -ge "$update_limit" ]]; then if [[ "$proc_count" -ge "$update_limit" ]]; then
sleep 10 sleep 10
elif [[ $it -lt ${#array[@]} ]]; then elif [[ $it -lt ${#array[@]} ]]; then
new_updates=0
until [[ "$proc_count" -ge "$update_limit" || $it -ge ${#array[@]} ]] until [[ "$proc_count" -ge "$update_limit" || $it -ge ${#array[@]} ]]
do do
update_apps "${array[$it]}" & update_apps "${array[$it]}" &
processes+=($!) processes+=($!)
((it++)) ((it++))
((new_updates++))
((proc_count++)) ((proc_count++))
done done
((ttl++)) ((ttl++))