From e416ed6f1c6cdaafa346b6a621b0f8905159e0b9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 10 Jan 2018 18:07:28 +0100 Subject: [PATCH] Fix minor bug: number of pids must be initialised by '0'. --- remove_zombies_user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remove_zombies_user.sh b/remove_zombies_user.sh index 37ab892..76979b0 100755 --- a/remove_zombies_user.sh +++ b/remove_zombies_user.sh @@ -233,7 +233,7 @@ then if [[ "$?" -eq 0 ]];then - declare -i count=1 + declare -i count=0 for _PID in $ZOMBIE_PIDS ; do if [[ $count -eq 1 ]]; then KILLED_PIDS="$_PID"