mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 20:52:12 -05:00
that loop was dumb
This commit is contained in:
parent
c6594d8fb5
commit
b1525fa761
1 changed files with 4 additions and 13 deletions
|
@ -519,19 +519,10 @@ function LintAnsibleFiles()
|
||||||
######################################################
|
######################################################
|
||||||
if [ -d "$ANSIBLE_DIRECTORY" ]; then
|
if [ -d "$ANSIBLE_DIRECTORY" ]; then
|
||||||
|
|
||||||
############################################################
|
#################################
|
||||||
# Check to see if we need to go through array or all files #
|
# Get list of all files to lint #
|
||||||
############################################################
|
#################################
|
||||||
if [ "$VALIDATE_ALL_CODEBASE" == "false" ]; then
|
mapfile -t LIST_FILES < <(ls "$ANSIBLE_DIRECTORY/*.yml" 2>&1)
|
||||||
# We need to only check the ansible playbooks that have updates
|
|
||||||
#LIST_FILES=("${ANSIBLE_ARRAY[@]}")
|
|
||||||
mapfile -t LIST_FILES < <(ls "$ANSIBLE_DIRECTORY/*.yml" 2>&1)
|
|
||||||
else
|
|
||||||
#################################
|
|
||||||
# Get list of all files to lint #
|
|
||||||
#################################
|
|
||||||
mapfile -t LIST_FILES < <(ls "$ANSIBLE_DIRECTORY/*.yml" 2>&1)
|
|
||||||
fi
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# Set the list to empty if only MD and TXT files were changed #
|
# Set the list to empty if only MD and TXT files were changed #
|
||||||
|
|
Loading…
Reference in a new issue