revert, un-needed due to condition above it
This commit is contained in:
parent
c7afe81a38
commit
8af787f2d4
@ -78,12 +78,11 @@ do
|
|||||||
sleep 3
|
sleep 3
|
||||||
elif [[ $it -lt ${#array[@]} ]]; then
|
elif [[ $it -lt ${#array[@]} ]]; then
|
||||||
loop=0
|
loop=0
|
||||||
until [[ $loop -ge 2 || $proc_count -ge $update_limit || $it -ge ${#array[@]} ]];
|
until [[ $loop -ge 2 || $it -ge ${#array[@]} ]];
|
||||||
do
|
do
|
||||||
update_apps "${array[$it]}" &
|
update_apps "${array[$it]}" &
|
||||||
processes+=($!)
|
processes+=($!)
|
||||||
((loop++))
|
((loop++))
|
||||||
((proc_count++))
|
|
||||||
((it++))
|
((it++))
|
||||||
done
|
done
|
||||||
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
|
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
|
||||||
|
Loading…
Reference in New Issue
Block a user