From bf045db30314a8fa75ee91dfc27fd13d46fb9f81 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 6 Jul 2020 08:29:36 -0500 Subject: [PATCH] hunting a bug --- lib/buildFileList.sh | 10 +++++----- lib/linter.sh | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 0bba876f..e856c341 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -81,11 +81,6 @@ function BuildFileList() { echo "----------------------------------------------" echo "Files that have been modified in the commit(s):" for FILE in "${RAW_FILE_ARRAY[@]}"; do - ############## - # Print file # - ############## - echo "File:[$FILE]" - ########################### # Get the files extension # ########################### @@ -93,6 +88,11 @@ function BuildFileList() { # reverse it back, substitute to lowercase FILE_TYPE=$(basename "$FILE" | rev | cut -f1 -d'.' | rev | awk '{print tolower($0)}') + ############## + # Print file # + ############## + echo "File:[$FILE], File_type:[$FILE_TYPE]" + ######### # DEBUG # ######### diff --git a/lib/linter.sh b/lib/linter.sh index 43acd3ac..96f8e6a0 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -451,8 +451,7 @@ DetectOpenAPIFile() { } ################################################################################ #### Function DetectARMFile #################################################### -DetectARMFile() -{ +DetectARMFile() { ################ # Pull in vars # ################