mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-06 01:05:54 -05:00
fix ansible issue
This commit is contained in:
parent
cdc17be148
commit
b3e545d5b8
1 changed files with 8 additions and 8 deletions
|
@ -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 #
|
||||
|
|
Loading…
Reference in a new issue