os/arch (panel-notify): fail gracefully if lemonbar isn't running
This commit is contained in:
parent
79c25bbf57
commit
2e58cbc837
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if ! pgrep lemonbar >/dev/null; then
|
||||
>&2 echo "Lemonbar isn't running"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CWD=$(dirname $0)
|
||||
if [[ -t 0 ]]; then
|
||||
if (( $# == 0 )); then
|
||||
|
|
Loading…
Reference in a new issue