Clip trailing slash from gotify address
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
if [ "$(cat /data/gotify_previous_ip || true)" != "$1" ]; then
|
if [ "$(cat /data/gotify_previous_ip || true)" != "$1" ]; then
|
||||||
echo -n "$1" > /data/gotify_previous_ip
|
echo -n "$1" > /data/gotify_previous_ip
|
||||||
|
|
||||||
curl -s "$GOTIFY_ADDRESS/message" \
|
curl -s "${GOTIFY_ADDRESS%/}/message" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "X-Gotify-Key: $GOTIFY_TOKEN" \
|
-H "X-Gotify-Key: $GOTIFY_TOKEN" \
|
||||||
-F "title=IP Address updated" \
|
-F "title=IP Address updated" \
|
||||||
|
|||||||
Reference in New Issue
Block a user