This commit is contained in:
Heavybullets8 2022-08-04 21:46:37 -06:00
parent 382f6d2f6a
commit c52e1e86f9

View File

@ -29,12 +29,16 @@ do
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]}" &
sleep 4
processes+=($!) processes+=($!)
((it++)) ((it++))
((proc_count++)) ((proc_count++))
done done
((ttl++)) ((ttl++))
if [[ $ttl -eq 1 ]]; then
sleep 15
else
sleep 6
fi
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
sleep 6 sleep 6
else # All processes must be completed, break out of loop else # All processes must be completed, break out of loop