This commit is contained in:
Heavybullets8 2022-07-27 15:23:56 -06:00
parent fd21a80db0
commit cf2f5000ee

View File

@ -32,7 +32,9 @@ do
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
sleep 3 sleep 3
else # All processes must be completed, break out of loop else # All processes must be completed, break out of loop
wait "${processes[*]}" for proc in "${processes[@]}"; do
wait "$proc"
done
break break
fi fi
done done