test more aggressive loop
This commit is contained in:
parent
1ad4690a2a
commit
3eae25dede
@ -25,9 +25,12 @@ do
|
|||||||
if [[ "$proc_count" -ge "$update_limit" ]]; then
|
if [[ "$proc_count" -ge "$update_limit" ]]; then
|
||||||
sleep 3
|
sleep 3
|
||||||
elif [[ $it -lt ${#array[@]} ]]; then
|
elif [[ $it -lt ${#array[@]} ]]; then
|
||||||
update_apps "${array[$it]}" &
|
until [[ ${#processes[@]} -ge "$update_limit" || ${#processes[@]} -ge ${#array[@]} ]]
|
||||||
processes+=($!)
|
do
|
||||||
((it++))
|
update_apps "${array[$it]}" &
|
||||||
|
processes+=($!)
|
||||||
|
((it++))
|
||||||
|
done
|
||||||
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
|
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
|
||||||
sleep 3
|
sleep 3
|
||||||
else # All processes must be completed, break out of loop
|
else # All processes must be completed, break out of loop
|
||||||
|
Loading…
Reference in New Issue
Block a user