removed variable
This commit is contained in:
parent
d448916d5b
commit
e496fc4c14
@ -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++))
|
||||||
|
Loading…
Reference in New Issue
Block a user