replace manual counter with array count

This commit is contained in:
Heavybullets8 2022-08-10 20:23:03 -06:00
parent e57cb90642
commit 83d65a2a8f

View File

@ -44,7 +44,7 @@ do
((it++))
((proc_count++))
done
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
elif [[ ${#processes[@]} != 0 ]]; then # Wait for all processes to finish
sleep $delay
else # All processes must be completed, break out of loop
break