aboutsummaryrefslogtreecommitdiffstats
path: root/sway-launcher-desktop.sh
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-11-13 07:01:17 +0100
committerMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-11-13 07:01:17 +0100
commit83d25aeb49ae54b41341320a3f48c57b372c9a7f (patch)
tree9d45ad8b34309bf9b53fdc28531181c9003fe7c5 /sway-launcher-desktop.sh
parentf81648fe35afea6ad1633c2f761380335c004f5d (diff)
downloadsway-launcher-desktop-83d25aeb49ae54b41341320a3f48c57b372c9a7f.tar.gz
sway-launcher-desktop-83d25aeb49ae54b41341320a3f48c57b372c9a7f.zip
Always return 0 after killing pipe. Sometimes there would be no matching process for PIDFILE, causing an error. #8
Diffstat (limited to 'sway-launcher-desktop.sh')
-rwxr-xr-xsway-launcher-desktop.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index 2645b33..eb70b0d 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -180,7 +180,7 @@ COMMAND_STR=$(
fzf +s -x -d '\034' --nth ..3 --with-nth 3 \
--preview "$0 describe {1} {2}" \
--preview-window=up:3:wrap --ansi
- kill -9 "$(<"$PIDFILE")" | tail -n1
+ (kill -9 "$(<"$PIDFILE")"; exit 0) | tail -n1
) || exit 1
[ -z "$COMMAND_STR" ] && exit 1