This commit is contained in:
Heavybullets8 2022-07-25 16:04:43 -06:00
parent 0de879ef38
commit 8f3b9e9922

View File

@ -15,12 +15,16 @@ do
if [[ "$jobs" -ge "$update_limit" ]]; then if [[ "$jobs" -ge "$update_limit" ]]; then
sleep 3 sleep 3
else else
output=$(update_apps "${array[$it]}" &) mapfile -t output < <(update_apps "${array[$it]}" &)
processes+=($!) processes+=($!)
((it++)) ((it++))
fi fi
done done
echo "$output"
for i in "${output[@]}"
do
echo "$i"
done
for proc in "${processes[@]}" for proc in "${processes[@]}"
do do