From 2d0388d9b5d889e0a3778a18950a901c844e09bc Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 23:44:55 -0600 Subject: [PATCH] best --- 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 94db2c24..4664de1b 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,7 +15,7 @@ do count=0 for proc in "${processes[@]}" do - kill -0 "$proc" &> /dev/null || { ((proc_count--)) ; unset "processes[$count]" ;} + kill -0 "$proc" &> /dev/null || { unset "processes[$count]"; ((proc_count--)); } done #jobs=$(jobs -p | wc -l) if [[ "$proc_count" -ge "$update_limit" ]]; then