From f187b0b3ab46d50f9c201b9a612521e14197549d Mon Sep 17 00:00:00 2001 From: Ayodeji Osagie <19154439+Osazz@users.noreply.github.com> Date: Mon, 28 Jun 2021 10:40:31 -0300 Subject: [PATCH] Fix terragrunt file picker from selecting packer files (#1707) Co-authored-by: Lukas Gravley --- lib/functions/buildFileList.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index e9404c2a..521ca15d 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -713,7 +713,7 @@ function BuildFileList() { ############################ # Get the Terragrunt files # ############################ - elif [ "${FILE_TYPE}" == "hcl" ] && [[ ${FILE} != *".tflint.hcl"* ]]; then + elif [ "${FILE_TYPE}" == "hcl" ] && [[ ${FILE} != *".tflint.hcl"* ]] && [[ ${FILE} != *".pkr.hcl"* ]]; then ################################ # Append the file to the array # ################################