scripts

Log | Files | Refs | README

commit d5305cf47e2877bb3eb8d158547380bb0de60fd3
parent 736e8079be62bb744ae4a172405422bda0780565
Author: Chris Roberts <chris.roberts@learningunix.net>
Date:   Mon,  1 Jun 2026 09:34:22 -0500

 added logic to check for pushover credentials

Diffstat:
Mnotify.sh | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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 <title> <message>" >&2 exit 1