From 2e73056646a80320fcb304c7d1a29dd2b78b991b Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Tue, 27 Dec 2022 06:41:33 +0100 Subject: [PATCH] Clip trailing slash from gotify address --- mounts/ddclient/data/postscript_gotify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mounts/ddclient/data/postscript_gotify.sh b/mounts/ddclient/data/postscript_gotify.sh index f4ad344..1dacce5 100755 --- a/mounts/ddclient/data/postscript_gotify.sh +++ b/mounts/ddclient/data/postscript_gotify.sh @@ -3,7 +3,7 @@ if [ "$(cat /data/gotify_previous_ip || true)" != "$1" ]; then echo -n "$1" > /data/gotify_previous_ip - curl -s "$GOTIFY_ADDRESS/message" \ + curl -s "${GOTIFY_ADDRESS%/}/message" \ -X POST \ -H "X-Gotify-Key: $GOTIFY_TOKEN" \ -F "title=IP Address updated" \