diff options
Diffstat (limited to 'plugins/pskill')
-rwxr-xr-x | plugins/pskill | 4 |
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 |