diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 8fb9a588..d3239c49 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,7 +15,7 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 3 else - mapfile -t output < <(update_apps "${array[$it]}" &) + mapfile -t output < <(update_apps "${array[$it]}") & processes+=($!) ((it++)) fi