mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-28 06:04:18 +01:00
Add file notification channel
This commit is contained in:
parent
37f33d7a06
commit
6af9ff3eb8
5 changed files with 41 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
VERSION="v0.7.0"
|
||||
# ChangeNotes: Snooze bugfix, added auth support to ntfy.sh and sendmail support to SMTP
|
||||
VERSION="v0.7.1"
|
||||
# ChangeNotes: Call send_notification even when no updates are available to write to file (if enabled) and clean up snooze
|
||||
Github="https://github.com/mag37/dockcheck"
|
||||
RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh"
|
||||
|
||||
|
|
@ -507,6 +507,8 @@ if [[ -n ${GotUpdates[*]:-} ]]; then
|
|||
if [[ -s "$ScriptWorkDir/urls.list" ]] && [[ "$PrintReleaseURL" == true ]]; then releasenotes; else Updates=("${GotUpdates[@]}"); fi
|
||||
[[ "$AutoMode" == false ]] && list_options || printf "%s\n" "${Updates[@]}"
|
||||
[[ "$Notify" == true ]] && { exec_if_exists_or_fail send_notification "${GotUpdates[@]}" || printf "\nCould not source notification function.\n"; }
|
||||
else
|
||||
[[ "$Notify" == true ]] && [[ ! -s "${ScriptWorkDir}/notify.sh" ]] && { exec_if_exists_or_fail send_notification "${GotUpdates[@]}" || printf "\nCould not source notification function.\n"; }
|
||||
fi
|
||||
|
||||
# Optionally get updates if there's any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue