replace manual counter with array count
This commit is contained in:
parent
e57cb90642
commit
83d65a2a8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user