added logic to check for pushover credentials
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user