mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-06 00:50:32 +01:00
Refactor notification send/skip logic. Adjust missing variable return codes.
This commit is contained in:
parent
51c9987d45
commit
4bfe28265f
12 changed files with 70 additions and 36 deletions
|
|
@ -24,7 +24,7 @@ trigger_pushover_notification() {
|
|||
printf "The ${pushover_channel} notification channel is enabled, but required configuration variables are missing. Pushover notifications will not be sent.\n"
|
||||
|
||||
remove_channel pushover
|
||||
return 1
|
||||
return 0
|
||||
fi
|
||||
|
||||
PushoverUrl="${!PushoverUrlVar}" # e.g. PUSHOVER_URL=https://api.pushover.net/1/messages.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue