This commit is contained in:
Heavybullets8 2022-07-24 22:39:27 -06:00
parent bed013a584
commit 7268ae5594

View File

@ -15,9 +15,11 @@ count=0
processes+=($!)
while [[ "$count" -ge "$update_limit" ]]
do
jobs -p
pidcount=0
echo "waiting for free space"
wait -n "${processes[@]}"
(( count-- ))
wait -n "${processes[pidcount]}" && (( count-- ))
(( pidcount ++ ))
done
done