replace manual counter with array count
This commit is contained in:
parent
e57cb90642
commit
83d65a2a8f
@ -44,7 +44,7 @@ do
|
|||||||
((it++))
|
((it++))
|
||||||
((proc_count++))
|
((proc_count++))
|
||||||
done
|
done
|
||||||
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
|
elif [[ ${#processes[@]} != 0 ]]; then # Wait for all processes to finish
|
||||||
sleep $delay
|
sleep $delay
|
||||||
else # All processes must be completed, break out of loop
|
else # All processes must be completed, break out of loop
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user