opt: fix ntfy

This commit is contained in:
2025-12-30 14:47:31 +07:00
parent 428a753fa2
commit 8284b41d30

View File

@@ -47,12 +47,12 @@ send_ntfy() {
# Disable exit on error for curl # Disable exit on error for curl
set +e 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 "Title: $ICON $TITLE" \
-H "Priority: 4" \ -H "Priority: 4" \
-H "Click: $click_url" \ -H "Click: $click_url" \
-H "Actions: view, Open Logs, $click_url" \ -H "Actions: view, Open Logs, $click_url" \
-d "$MESSAGE" 2>&1) --data-binary @- 2>&1)
curl_exit_code=$? curl_exit_code=$?
set -e set -e