From a9aabcf6a7dfbc01e0564f62386e7a989c52588a Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 10 Mar 2012 10:57:07 -0500 Subject: [PATCH] little oops on which variable to check for emptiness. --- scripts/core/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 "" -- 2.34.1