diff options
author | 2020-08-20 03:21:26 -0600 | |
---|---|---|
committer | 2020-08-20 14:51:26 +0530 | |
commit | 1afdd48f5d2eddbe0e19ad2ed59d4b161fe743ca (patch) | |
tree | 4be450c2344224527c31eff9a8fc3ad2b456059b /plugins/pskill | |
parent | d78856626844bc14a09c271703f3a825ec1e8671 (diff) | |
download | nnn-1afdd48f5d2eddbe0e19ad2ed59d4b161fe743ca.tar.gz |
nuke: use macOS open when GUI enabled (#705)
* nuke: use macOS open when GUI enabled
* nuke: use is_mac function to test for macOS
This is consistent with how the imgur plugin does detection.
* Add macOS open command to plugins
* pskill: only execute if input is non-empty
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 |