grrrr. now was not checking that there were actual pids listed.
authorChris Koeritz <fred@gruntose.com>
Sat, 10 Mar 2012 15:58:27 +0000 (10:58 -0500)
committerChris Koeritz <fred@gruntose.com>
Sat, 10 Mar 2012 15:58:27 +0000 (10:58 -0500)
scripts/core/functions.sh

index 6b741d616aaf32244312140bc6cae03f24fb4842..20bb047567d2e0fd831c5eab79cdce9b2a57c640 100644 (file)
@@ -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 ""