mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-19 02:47:45 +00:00
fixed variable errors
This commit is contained in:
@@ -73,7 +73,7 @@ Stopped=${Stopped:=""}
|
|||||||
CollectorTextFileDirectory=${CollectorTextFileDirectory:-}
|
CollectorTextFileDirectory=${CollectorTextFileDirectory:-}
|
||||||
Exclude=${Exclude:-}
|
Exclude=${Exclude:-}
|
||||||
DaysOld=${DaysOld:-}
|
DaysOld=${DaysOld:-}
|
||||||
OnlySpecific=false
|
OnlySpecific=${OnlySpecific:=false}
|
||||||
SpecificContainer=${SpecificContainer:=""}
|
SpecificContainer=${SpecificContainer:=""}
|
||||||
Excludes=()
|
Excludes=()
|
||||||
GotUpdates=()
|
GotUpdates=()
|
||||||
@@ -546,7 +546,7 @@ if [[ -n "${GotUpdates:-}" ]]; then
|
|||||||
ContRestartStack=$($jqbin -r '."mag37.dockcheck.restart-stack"' <<< "$ContLabels")
|
ContRestartStack=$($jqbin -r '."mag37.dockcheck.restart-stack"' <<< "$ContLabels")
|
||||||
[[ "$ContRestartStack" == "null" ]] && ContRestartStack=""
|
[[ "$ContRestartStack" == "null" ]] && ContRestartStack=""
|
||||||
ContOnlySpecific=$($jqbin -r '."mag37.dockcheck.only-specific-container"' <<< "$ContLabels")
|
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
|
# Checking if compose-values are empty - hence started with docker run
|
||||||
[[ -z "$ContPath" ]] && continue
|
[[ -z "$ContPath" ]] && continue
|
||||||
|
|||||||
Reference in New Issue
Block a user