diff --git a/functions/update_apps.sh b/functions/update_apps.sh index e0b813ba..84221570 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -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