From 543986deee2b3169303b4ee86e46059305a45a45 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 10 Nov 2020 10:02:03 -0600 Subject: [PATCH] skip files --- lib/buildFileList.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 50d65700..6ee10653 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -143,6 +143,15 @@ function BuildFileList() { ############## debug "File:[${FILE}], File_type:[${FILE_TYPE}], Base_file:[${BASE_FILE}]" + ########################################################## + # Check if the file exists on the filesystem, or skip it # + ########################################################## + if [ ! -f "${FILE}" ]; then + # File not found in workspace + debug "File:{$FILE} existed in commit data, but not found on file system, skipping..." + continue + fi + ######################################################## # Don't include test cases if not running in test mode # ######################################################## @@ -159,9 +168,9 @@ function BuildFileList() { # Editorconfig-checker should check every file FILE_ARRAY_EDITORCONFIG+=("${FILE}") - ###################### + ####################### # Get the shell files # - ###################### + ####################### if IsValidShellScript "${FILE}"; then ################################ # Append the file to the array #