From e8cde77aa057b2bef05bb3ef290afa214b349602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Thu, 24 Mar 2022 15:28:03 +0100 Subject: [PATCH] avoid failing on missing trusted registries --- hadolint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadolint.sh b/hadolint.sh index b8a9911..f0fd926 100755 --- a/hadolint.sh +++ b/hadolint.sh @@ -19,6 +19,10 @@ if [ -n "$HADOLINT_CONFIG" ]; then HADOLINT_CONFIG="-c ${HADOLINT_CONFIG}" fi +if [ -z "$HADOLINT_TRUSTED_REGISTRIES" ]; then + unset HADOLINT_TRUSTED_REGISTRIES; +fi + OUTPUT= if [ -n "$HADOLINT_OUTPUT" ]; then if [ -f "$HADOLINT_OUTPUT" ]; then