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+=($!) processes+=($!)
while [[ "$count" -ge "$update_limit" ]] while [[ "$count" -ge "$update_limit" ]]
do do
jobs -p
pidcount=0
echo "waiting for free space" echo "waiting for free space"
wait -n "${processes[@]}" wait -n "${processes[pidcount]}" && (( count-- ))
(( count-- )) (( pidcount ++ ))
done done
done done