Uniform variable names

This commit is contained in:
solitudechn 2026-01-28 14:42:20 +08:00
parent bab509ebdb
commit f742134551
2 changed files with 3 additions and 3 deletions

View file

@ -90,6 +90,6 @@
# TELEGRAM_TOKEN="token-value"
# TELEGRAM_TOPIC_ID="0"
#
# NOTIFY_BARK_KEY=""
# BARK_KEY=""
#
# FILE_PATH="${ScriptWorkDir}/updates_available.txt"

View file

@ -12,7 +12,7 @@ trigger_bark_notification() {
fi
[[ -z "$jqbin" ]] && { echo "Error: jq missing"; return 1; }
[[ -z "$NOTIFY_BARK_KEY" ]] && { echo "Error: Key not set"; return 1; }
[[ -z "$BARK_KEY" ]] && { echo "Error: Key not set"; return 1; }
local sound="${BARK_SOUND:-hello}"
local group="${BARK_GROUP:-Dockcheck}"
@ -38,7 +38,7 @@ trigger_bark_notification() {
}' )
if curl -s -f -X POST "https://api.day.app/$NOTIFY_BARK_KEY" \
if curl -s -f -X POST "https://api.day.app/$BARK_KEY" \
-H "Content-Type: application/json; charset=utf-8" \
-d "$json_payload" > /dev/null 2>&1; then
echo "Bark notification sent successfully (Markdown): $title"