diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 84221570..bdf438e0 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,12 +15,16 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 3 else - output=$(update_apps "${array[$it]}" &) + mapfile -t output < <(update_apps "${array[$it]}" &) processes+=($!) ((it++)) fi done -echo "$output" + +for i in "${output[@]}" +do + echo "$i" +done for proc in "${processes[@]}" do