From 017edabaf0a0f0184cd3d5236d9f39fbd5f213df Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 16:05:37 -0600 Subject: [PATCH] wait for processes first --- functions/update_apps.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index bdf438e0..8fb9a588 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -21,15 +21,17 @@ do fi done +for proc in "${processes[@]}" +do + wait "$proc" +done + + for i in "${output[@]}" do echo "$i" done -for proc in "${processes[@]}" -do - wait "$proc" -done