From 3c1cecb7f81f8015821571c72cacf848214a38cc Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 13 Nov 2020 16:05:04 +0100 Subject: [PATCH] Exclude __pycache__ and .pytest_cache from file list (#998) Co-authored-by: Lukas Gravley --- lib/functions/buildFileList.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index 4b74a49b..fc84d495 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -95,9 +95,11 @@ function BuildFileList() { debug "Populating the file list with all the files in the ${WORKSPACE_PATH} workspace" mapfile -t RAW_FILE_ARRAY < <(find "${WORKSPACE_PATH}" \ -not \( -path '*/\.git' -prune \) \ + -not \( -path '*/\.pytest_cache' -prune \) \ -not \( -path '*/\.rbenv' -prune \) \ -not \( -path '*/\.terragrunt-cache' -prune \) \ -not \( -path '*/\.venv' -prune \) \ + -not \( -path '*/\__pycache__' -prune \) \ -type f \ 2>&1 | sort)