idk
This commit is contained in:
parent
71dca98533
commit
0de879ef38
@ -15,18 +15,20 @@ do
|
||||
if [[ "$jobs" -ge "$update_limit" ]]; then
|
||||
sleep 3
|
||||
else
|
||||
update_apps "${array[$it]}" &
|
||||
output=$(update_apps "${array[$it]}" &)
|
||||
processes+=($!)
|
||||
((it++))
|
||||
fi
|
||||
done
|
||||
|
||||
echo "$output"
|
||||
|
||||
for proc in "${processes[@]}"
|
||||
do
|
||||
wait "$proc"
|
||||
done
|
||||
|
||||
|
||||
|
||||
}
|
||||
export -f commander
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user