diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 29770ad2..b5cf1632 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -16,7 +16,7 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 3 else - update_apps "${#array[$it]}" & + update_apps "${array[$it]}" & processes+=($!) ((it++)) fi