wait
This commit is contained in:
parent
9079cf7a33
commit
1b89f90230
@ -12,6 +12,7 @@ count=0
|
||||
do
|
||||
update_apps "$i" &
|
||||
(( count++ ))
|
||||
processes+=($!)
|
||||
while [[ "$count" -ge "$update_limit" ]]
|
||||
do
|
||||
echo "waiting for free space"
|
||||
@ -19,6 +20,12 @@ count=0
|
||||
count=0
|
||||
done
|
||||
done
|
||||
|
||||
for proc in "${processes[@]}"
|
||||
do
|
||||
wait "$proc"
|
||||
done
|
||||
|
||||
}
|
||||
export -f commander
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user