mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-22 11:14:15 +01:00
Bypass file channel notifications for dockcheck.sh script
This commit is contained in:
parent
6af9ff3eb8
commit
5ab10a097e
1 changed files with 5 additions and 3 deletions
|
|
@ -189,9 +189,11 @@ dockcheck_notification() {
|
||||||
|
|
||||||
if [[ ${#enabled_notify_channels[@]} -gt 0 ]]; then printf "\n"; fi
|
if [[ ${#enabled_notify_channels[@]} -gt 0 ]]; then printf "\n"; fi
|
||||||
for channel in "${enabled_notify_channels[@]}"; do
|
for channel in "${enabled_notify_channels[@]}"; do
|
||||||
printf "Sending dockcheck update notification - ${channel}\n"
|
if [[ ! "${channel}" == "file" ]]; then
|
||||||
exec_if_exists_or_fail trigger_${channel}_notification || \
|
printf "Sending dockcheck update notification - ${channel}\n"
|
||||||
printf "Attempted to send notification to channel ${channel}, but the function was not found. Make sure notify_${channel}.sh is available in the ${ScriptWorkDir} directory or notify_templates subdirectory.\n"
|
exec_if_exists_or_fail trigger_${channel}_notification || \
|
||||||
|
printf "Attempted to send notification to channel ${channel}, but the function was not found. Make sure notify_${channel}.sh is available in the ${ScriptWorkDir} directory or notify_templates subdirectory.\n"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
[[ -n "${snooze}" ]] && [[ "${NotifyError}" == "false" ]] && update_snooze "dockcheck.sh"
|
[[ -n "${snooze}" ]] && [[ "${NotifyError}" == "false" ]] && update_snooze "dockcheck.sh"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue