diff --git a/dockcheck.sh b/dockcheck.sh index f5bbad7..cccc6dc 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -355,7 +355,7 @@ if [[ "$VERSION" != "$LatestRelease" ]]; then fi # Version check for notify templates -[[ "$Notify" == true ]] && { exec_if_exists_or_fail notify_update_notification || printf "Could not source notify notification function.\n"; } +[[ "$Notify" == true ]] && [[ ! -s "${ScriptWorkDir}/notify.sh" ]] && { exec_if_exists_or_fail notify_update_notification || printf "Could not source notify notification function.\n"; } dependency_check "regctl" "regbin" "https://github.com/regclient/regclient/releases/latest/download/regctl-linux-TEMP" dependency_check "jq" "jqbin" "https://github.com/jqlang/jq/releases/latest/download/jq-linux-TEMP"