mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-28 17:11:00 -05:00
commit
91d2f937fa
1 changed files with 9 additions and 9 deletions
|
@ -94,12 +94,14 @@ function BuildFileList() {
|
||||||
debug "----------------------------------------------"
|
debug "----------------------------------------------"
|
||||||
debug "Populating the file list with all the files in the ${WORKSPACE_PATH} workspace"
|
debug "Populating the file list with all the files in the ${WORKSPACE_PATH} workspace"
|
||||||
mapfile -t RAW_FILE_ARRAY < <(find "${WORKSPACE_PATH}" \
|
mapfile -t RAW_FILE_ARRAY < <(find "${WORKSPACE_PATH}" \
|
||||||
-path "*/node_modules" -prune -o \
|
-not \( -path '*/\.git' -prune \) \
|
||||||
-path "*/.git" -prune -o \
|
-not \( -path '*/\.rbenv' -prune \) \
|
||||||
-path "*/.venv" -prune -o \
|
-not \( -path '*/\.terragrunt-cache' -prune \) \
|
||||||
-path "*/.rbenv" -prune -o \
|
-not \( -path '*/\.venv' -prune \) \
|
||||||
-path "*/.terragrunt-cache" -prune -o \
|
-type f \
|
||||||
-type f 2>&1 | grep -v -w '\.git' | sort )
|
2>&1 | sort)
|
||||||
|
|
||||||
|
debug "RAW_FILE_ARRAY contents: ${RAW_FILE_ARRAY[*]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
@ -111,9 +113,7 @@ function BuildFileList() {
|
||||||
# Check the shell for errors #
|
# Check the shell for errors #
|
||||||
##############################
|
##############################
|
||||||
if [ ${ERROR_CODE} -ne 0 ]; then
|
if [ ${ERROR_CODE} -ne 0 ]; then
|
||||||
# Error
|
fatal "Failed to gain a list of all files changed! Error code: ${ERROR_CODE}"
|
||||||
error "Failed to gain a list of all files changed!"
|
|
||||||
fatal "[${RAW_FILE_ARRAY[*]}]"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue