From 0de879ef38f0bca88d77fe2f56b448fa70658fb7 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 15:59:51 -0600 Subject: [PATCH] idk --- functions/update_apps.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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