panel: fix outdated pkill pattern

This commit is contained in:
Henrik Lissner 2016-11-05 16:27:30 +01:00
parent eca7504e40
commit 145fbccbfb

View file

@ -2,7 +2,7 @@
if [ "$1" = "--kill" ] if [ "$1" = "--kill" ]
then then
pkill -f '^bash .+/panel$' pkill -f '^dash .+/panel$'
exit exit
fi fi
@ -12,7 +12,7 @@ CWD="$(cd $(dirname $0) && pwd -P)"
# #
running() { pgrep -f $1 >/dev/null; } running() { pgrep -f $1 >/dev/null; }
cleanup() { rm -rf /tmp/panel-fifo-* && pkill -P $$; } cleanup() { rm -rf "$PANEL_FIFO"; pkill -P $$; }
# #
trap cleanup INT TERM QUIT EXIT trap cleanup INT TERM QUIT EXIT