Skip to content

Commit

Permalink
Always return 0 after killing pipe. Sometimes there would be no match…
Browse files Browse the repository at this point in the history
…ing process for PIDFILE, causing an error. #8
  • Loading branch information
Biont committed Nov 13, 2019
1 parent f81648f commit 83d25ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-launcher-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83d25ae

Please sign in to comment.