diff --git a/functions/update_apps.sh b/functions/update_apps.sh index ebd6aa51..f3e8d22d 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -18,7 +18,7 @@ count=0 do for proc in "${processes[@]}" do - kill -0 "$proc" || unset "processes[$proc_count]" + kill -0 "$proc" || { unset "processes[$proc_count]"; break; } (( proc_count++ )) done done