From d5305cf47e2877bb3eb8d158547380bb0de60fd3 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 1 Jun 2026 09:34:22 -0500 Subject: [PATCH] added logic to check for pushover credentials --- notify.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 <message>" >&2 exit 1