This commit is contained in:
Heavybullets8 2022-07-25 15:59:51 -06:00
parent 71dca98533
commit 0de879ef38

View File

@ -15,18 +15,20 @@ do
if [[ "$jobs" -ge "$update_limit" ]]; then
sleep 3
else
update_apps "${array[$it]}" &
output=$(update_apps "${array[$it]}" &)
processes+=($!)
((it++))
fi
done
echo "$output"
for proc in "${processes[@]}"
do
wait "$proc"
done
}
export -f commander