mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-08 01:42:44 +01:00
add a sample a DSM notification addon
This commit is contained in:
parent
80a81f59d6
commit
ab3aaf1140
3 changed files with 40 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ ScriptWorkDir="$(dirname "$ScriptPath")"
|
|||
LatestRelease="$(curl -s -r 0-50 $RawUrl | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
|
||||
LatestChanges="$(curl -s -r 0-200 $RawUrl | sed -n "/ChangeNotes/s/### ChangeNotes: //p")"
|
||||
|
||||
[ -s $ScriptWorkDir/notify.sh ] && source $ScriptWorkDir/notify.sh
|
||||
|
||||
### Help Function:
|
||||
Help() {
|
||||
echo "Syntax: dockcheck.sh [OPTION] [part of name to filter]"
|
||||
|
|
@ -232,6 +234,7 @@ fi
|
|||
if [[ -n ${GotUpdates[*]} ]] ; then
|
||||
printf "\n%bContainers with updates available:%b\n" "$c_yellow" "$c_reset"
|
||||
[[ -z "$AutoUp" ]] && options || printf "%s\n" "${GotUpdates[@]}"
|
||||
[[ $(type -t send_notification) == function ]] && send_notification ${GotUpdates[@]}
|
||||
fi
|
||||
|
||||
### Optionally get updates if there's any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue