diff --git a/notify.sh b/notify.sh index 9e4e2a1..030dc88 100755 --- a/notify.sh +++ b/notify.sh @@ -1,5 +1,10 @@ #!/bin/sh +if [ -z "$PUSHOVER_USER" ] || [ -z "$PUSHOVER_TOKEN" ]; then + echo "Warning: Pushover user and token are not set" >&2 && logger -t notify.sh "pushover credentials cannot be found" + exit 1 +fi + if [ "$#" -lt 2 ]; then echo "Usage: notify.sh