From 8f3b9e99228499fc9905866cb148d0ab51832b52 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 16:04:43 -0600 Subject: [PATCH] array? --- functions/update_apps.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 84221570..bdf438e0 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,12 +15,16 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 3 else - output=$(update_apps "${array[$it]}" &) + mapfile -t output < <(update_apps "${array[$it]}" &) processes+=($!) ((it++)) fi done -echo "$output" + +for i in "${output[@]}" +do + echo "$i" +done for proc in "${processes[@]}" do