From b3e545d5b8d307d458e4bcddd9432fc44d621389 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 31 Oct 2019 09:59:46 -0500 Subject: [PATCH] fix ansible issue --- lib/linter.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index d144c8dc..c1e2cef6 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1393,7 +1393,7 @@ LintAnsibleFiles() # Get list of all files to lint # ################################# # shellcheck disable=SC2164,SC2010,SC2207 - LIST_FILES=($(cd "$ANSIBLE_DIR"; ls -I vault.yml -I galaxy.yml | grep ".yml" 2>&1)) + LIST_FILES=($(cd "$ANSIBLE_DIR"; ls | grep ".yml" 2>&1)) ################## # Lint the files # @@ -1401,13 +1401,13 @@ LintAnsibleFiles() for FILE in "${LIST_FILES[@]}" do - ####################################### - # Make sure we dont lint node modules # - ####################################### - # if [[ $FILE == *"node_modules"* ]]; then - # # This is a node modules file - # continue - # fi + ######################################## + # Make sure we dont lint certain files # + ######################################## + if [[ $FILE == *"vault.yml"* ]] || [[ $FILE == *"galaxy.yml"* ]]; then + # This is a file we dont look at + continue + fi #################### # Get the filename #