From 83d65a2a8fbcea235b99ce05822d12b31e7a5502 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 20:23:03 -0600 Subject: [PATCH] replace manual counter with array count --- functions/update_apps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 0a0c6bf0..2403ff2e 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -44,7 +44,7 @@ do ((it++)) ((proc_count++)) done - elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish + elif [[ ${#processes[@]} != 0 ]]; then # Wait for all processes to finish sleep $delay else # All processes must be completed, break out of loop break