diff --git a/functions/update_apps.sh b/functions/update_apps.sh index cbf7193c..08d84581 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,9 +15,10 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 1 else - { update_apps "${array[$it]}" ;} & + update_apps "${array[$it]}" & processes+=($!) ((it++)) + echo "$processes" fi done