panel: fix outdated pkill pattern
This commit is contained in:
parent
eca7504e40
commit
145fbccbfb
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue