From ef43d3c214153e5dac21d596a57001a2f4e640c4 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 27 Jul 2022 14:50:52 -0600 Subject: [PATCH] test --- functions/update_apps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 36f5719b..472ded56 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -28,10 +28,10 @@ do update_apps "${array[$it]}" & processes+=($!) ((it++)) - elif [[ ${#processes[@]} == 0 ]]; then - break - else + elif [[ ${#processes[@]} != 0 ]]; then # Wait for all processes to finish sleep 3 + else + break fi done rm temp.txt