From 83d25aeb49ae54b41341320a3f48c57b372c9a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Wed, 13 Nov 2019 07:01:17 +0100 Subject: Always return 0 after killing pipe. Sometimes there would be no matching process for PIDFILE, causing an error. #8 --- sway-launcher-desktop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway-launcher-desktop.sh') 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 -- cgit v1.2.3