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