added logic to check for pushover credentials

This commit is contained in:
2026-06-01 09:34:22 -05:00
parent 736e8079be
commit d5305cf47e
+5
View File
@@ -1,5 +1,10 @@
#!/bin/sh #!/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 if [ "$#" -lt 2 ]; then
echo "Usage: notify.sh <title> <message>" >&2 echo "Usage: notify.sh <title> <message>" >&2
exit 1 exit 1