From 22871442db509e42a5c8f0f3aecac3d7d7675bab Mon Sep 17 00:00:00 2001 From: mag37 Date: Mon, 26 May 2025 07:27:51 +0200 Subject: [PATCH] hotfix suppress noise Suppressed noise about not being able to source notification (new function) when on legacy notification template. --- dockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"