From b499b87dc177f0734d540f9dbb40e9deb6639001 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 16:23:50 -0600 Subject: [PATCH] uh --- functions/update_apps.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index d3239c49..a97238ff 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]}") & + coproc update_appsfd { update_apps "${array[$it]}" ; } processes+=($!) ((it++)) fi @@ -26,13 +26,9 @@ do wait "$proc" done +IFS= read -r -d '' -u "${update_appsfd[0]}" update_output -for i in "${output[@]}" -do - echo "$i" -done - - +echo "$update_output" }