From: Chris Koeritz Date: Sat, 10 Mar 2012 15:57:07 +0000 (-0500) Subject: little oops on which variable to check for emptiness. X-Git-Tag: 2.140.90~1488 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=a9aabcf6a7dfbc01e0564f62386e7a989c52588a;p=feisty_meow.git little oops on which variable to check for emptiness. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 61e19c4a..6b741d61 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -99,11 +99,11 @@ if [ -z "$skip_all" ]; then # finds all processes matching the pattern specified and shows their full # process listing (whereas psfind just lists process ids). function psa() { - p=$(psfind "$1") - if [ -z "$p" ]; then + if [ -z "$1" ]; then echo "psa finds processes by pattern, but there was no pattern on the command line." return 1 fi + p=$(psfind "$1") echo "" echo "Processes containing \"$1\"..." echo ""