best
This commit is contained in:
parent
5889438cbd
commit
2d0388d9b5
@ -15,7 +15,7 @@ do
|
|||||||
count=0
|
count=0
|
||||||
for proc in "${processes[@]}"
|
for proc in "${processes[@]}"
|
||||||
do
|
do
|
||||||
kill -0 "$proc" &> /dev/null || { ((proc_count--)) ; unset "processes[$count]" ;}
|
kill -0 "$proc" &> /dev/null || { unset "processes[$count]"; ((proc_count--)); }
|
||||||
done
|
done
|
||||||
#jobs=$(jobs -p | wc -l)
|
#jobs=$(jobs -p | wc -l)
|
||||||
if [[ "$proc_count" -ge "$update_limit" ]]; then
|
if [[ "$proc_count" -ge "$update_limit" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user