opt: fix ntfy
This commit is contained in:
@@ -47,12 +47,12 @@ send_ntfy() {
|
||||
|
||||
# Disable exit on error for curl
|
||||
set +e
|
||||
response=$(curl -s -w "\n%{http_code}" --http1.1 -k $auth_args -X POST "$NTFY_URL/$NTFY_TOPIC" \
|
||||
response=$(printf "%s" "$MESSAGE" | curl -s -w "\n%{http_code}" --http1.1 -k $auth_args -X POST "$NTFY_URL/$NTFY_TOPIC" \
|
||||
-H "Title: $ICON $TITLE" \
|
||||
-H "Priority: 4" \
|
||||
-H "Click: $click_url" \
|
||||
-H "Actions: view, Open Logs, $click_url" \
|
||||
-d "$MESSAGE" 2>&1)
|
||||
--data-binary @- 2>&1)
|
||||
curl_exit_code=$?
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user