From 0d70718f955a97a4682562501f7c295bc9f0e799 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 10 Mar 2012 10:58:27 -0500 Subject: [PATCH] grrrr. now was not checking that there were actual pids listed. --- scripts/core/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 6b741d61..20bb0475 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -104,6 +104,10 @@ if [ -z "$skip_all" ]; then return 1 fi p=$(psfind "$1") + if [ -z "$p" ]; then + # no matches. + return 0 + fi echo "" echo "Processes containing \"$1\"..." echo "" -- 2.34.1