aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pskill
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pskill')
-rwxr-xr-xplugins/pskill4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/pskill b/plugins/pskill
index 063be35..979492a 100755
--- a/plugins/pskill
+++ b/plugins/pskill
@@ -29,5 +29,7 @@ if ! [ -z "$psname" ]; then
fi
cmd="$(ps -ax | grep -iw "$psname" | "$fuzzy" | sed -e 's/^[ \t]*//' | cut -d' ' -f1)"
- $sucmd kill -9 "$cmd"
+ if [ -n "$cmd" ]; then
+ $sucmd kill -9 "$cmd"
+ fi
fi