os/arch (panel-notify): fail gracefully if lemonbar isn't running

This commit is contained in:
Henrik Lissner 2016-12-17 03:08:16 -05:00
parent 79c25bbf57
commit 2e58cbc837

View file

@ -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