From eb50e56e6bf79d031666fe4cb9a5b863f5ebc0d0 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 27 Jul 2022 14:36:23 -0600 Subject: [PATCH] test --- functions/update_apps.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index efb9d9a3..94f525ec 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -27,12 +27,10 @@ do update_apps "${array[$it]}" & processes+=($!) ((it++)) - else - for proc in "${processes[@]}" - do - wait "$proc" - done + elif [[ ${#processes[@]} == 0 ]]; then break + else + sleep 3 fi done rm temp.txt