From cfa2f0a18a158faa53551b0bd8e05ae4922afb78 Mon Sep 17 00:00:00 2001 From: mikaello <2505178+mikaello@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:32:36 +0100 Subject: [PATCH] fix: do not add asterisk in ignore pattern Closes https://github.com/cytopia/docker-file-lint/issues/26 --- Dockerfiles/data/awesome-ci-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfiles/data/awesome-ci-lib.sh b/Dockerfiles/data/awesome-ci-lib.sh index d377154..b3c9b77 100644 --- a/Dockerfiles/data/awesome-ci-lib.sh +++ b/Dockerfiles/data/awesome-ci-lib.sh @@ -756,7 +756,7 @@ fi # 'find' pattern for ignores/excludes # if [ "${MY_IGN}" != "" ]; then - EXCL_PATTERN="-not \( -path \"${MY_PATH}/${MY_IGN//,/*\" -o -path \"${MY_PATH}\/}*\" \)" + EXCL_PATTERN="-not \( -path \"${MY_PATH}/${MY_IGN//,/\" -o -path \"${MY_PATH}\/}\" \)" else EXCL_PATTERN="" fi