Refactor notification send/skip logic. Adjust missing variable return codes.

This commit is contained in:
Matthew Oleksowicz 2025-08-29 00:56:40 -04:00
parent 51c9987d45
commit 4bfe28265f
12 changed files with 70 additions and 36 deletions

View file

@ -22,7 +22,7 @@ trigger_gotify_notification() {
printf "The ${gotify_channel} notification channel is enabled, but required configuration variables are missing. Gotify notifications will not be sent.\n"
remove_channel gotify
return 1
return 0
fi
GotifyToken="${!GotifyTokenVar}" # e.g. GOTIFY_TOKEN=token-value