From e4b93d113cf54d2392789abbf76923b1d2e65971 Mon Sep 17 00:00:00 2001 From: mag37 Date: Thu, 15 May 2025 15:49:49 +0200 Subject: [PATCH] fixed variable errors --- dockcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index 4ad9a89..615fcd9 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -73,7 +73,7 @@ Stopped=${Stopped:=""} CollectorTextFileDirectory=${CollectorTextFileDirectory:-} Exclude=${Exclude:-} DaysOld=${DaysOld:-} -OnlySpecific=false +OnlySpecific=${OnlySpecific:=false} SpecificContainer=${SpecificContainer:=""} Excludes=() GotUpdates=() @@ -546,7 +546,7 @@ if [[ -n "${GotUpdates:-}" ]]; then ContRestartStack=$($jqbin -r '."mag37.dockcheck.restart-stack"' <<< "$ContLabels") [[ "$ContRestartStack" == "null" ]] && ContRestartStack="" ContOnlySpecific=$($jqbin -r '."mag37.dockcheck.only-specific-container"' <<< "$ContLabels") - [[ "$ContRestartStack" == "null" ]] && ContRestartStack="" + [[ "$ContOnlySpecific" == "null" ]] && ContRestartStack="" # Checking if compose-values are empty - hence started with docker run [[ -z "$ContPath" ]] && continue