From 1afdd48f5d2eddbe0e19ad2ed59d4b161fe743ca Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Thu, 20 Aug 2020 03:21:26 -0600 Subject: 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 --- plugins/pskill | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/pskill') 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 -- cgit v1.2.3-70-g09d2