commit a585db7084d554bc067914f72ea5a9d8a89efa57
parent f69e3c6286b237af466f48c3f456e182a3a269fc
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Mon,  7 Sep 2026 12:30:55 +0200

Don't log Gotify token

Diffstat:
Mnotify.sh | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/notify.sh b/notify.sh @@ -7,6 +7,10 @@ GOTIFY_DOMAIN="${GOTIFY_DOMAIN:-redacted}" GOTIFY_TOKEN="${GOTIFY_TOKEN:-redacted}" -curl -X POST "https://$GOTIFY_DOMAIN/message?token=$GOTIFY_TOKEN" \ - -F "title=${1:- }" -F "message=${2:-No message.}" -F "priority=${3:-5}" \ - >/dev/null 2>&1 +curl --fail --silent --show-error \ + -H "X-Gotify-Key: $GOTIFY_TOKEN" \ + --form-string "title=${1:-}" \ + --form-string "message=${2:-No message.}" \ + --form-string "priority=${3:-5}" \ + "https://$GOTIFY_DOMAIN/message" \ + >/dev/null