Merge pull request #11 from github/fixAnsible

fix ansible issue
This commit is contained in:
Lukas Gravley 2019-10-31 10:04:57 -05:00 committed by GitHub
commit 028b102dc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1393,7 +1393,7 @@ LintAnsibleFiles()
# Get list of all files to lint # # Get list of all files to lint #
################################# #################################
# shellcheck disable=SC2164,SC2010,SC2207 # 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 # # Lint the files #
@ -1401,13 +1401,13 @@ LintAnsibleFiles()
for FILE in "${LIST_FILES[@]}" for FILE in "${LIST_FILES[@]}"
do do
####################################### ########################################
# Make sure we dont lint node modules # # Make sure we dont lint certain files #
####################################### ########################################
# if [[ $FILE == *"node_modules"* ]]; then if [[ $FILE == *"vault.yml"* ]] || [[ $FILE == *"galaxy.yml"* ]]; then
# # This is a node modules file # This is a file we dont look at
# continue continue
# fi fi
#################### ####################
# Get the filename # # Get the filename #