From: Chris Koeritz Date: Sat, 10 Mar 2012 15:58:27 +0000 (-0500) Subject: grrrr. now was not checking that there were actual pids listed. X-Git-Tag: 2.140.90~1487 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=0d70718f955a97a4682562501f7c295bc9f0e799;p=feisty_meow.git grrrr. now was not checking that there were actual pids listed. --- 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 ""