array?
This commit is contained in:
parent
0de879ef38
commit
8f3b9e9922
@ -15,12 +15,16 @@ do
|
|||||||
if [[ "$jobs" -ge "$update_limit" ]]; then
|
if [[ "$jobs" -ge "$update_limit" ]]; then
|
||||||
sleep 3
|
sleep 3
|
||||||
else
|
else
|
||||||
output=$(update_apps "${array[$it]}" &)
|
mapfile -t output < <(update_apps "${array[$it]}" &)
|
||||||
processes+=($!)
|
processes+=($!)
|
||||||
((it++))
|
((it++))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "$output"
|
|
||||||
|
for i in "${output[@]}"
|
||||||
|
do
|
||||||
|
echo "$i"
|
||||||
|
done
|
||||||
|
|
||||||
for proc in "${processes[@]}"
|
for proc in "${processes[@]}"
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user