mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 07:48:14 +01:00
Uniform variable names
This commit is contained in:
parent
bab509ebdb
commit
f742134551
2 changed files with 3 additions and 3 deletions
|
|
@ -90,6 +90,6 @@
|
|||
# TELEGRAM_TOKEN="token-value"
|
||||
# TELEGRAM_TOPIC_ID="0"
|
||||
#
|
||||
# NOTIFY_BARK_KEY=""
|
||||
# BARK_KEY=""
|
||||
#
|
||||
# FILE_PATH="${ScriptWorkDir}/updates_available.txt"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue