Merge pull request #436 from kunzese/patch-1

Ansible: fix globbing issue and allow .yaml too
This commit is contained in:
Zack Koppert 2020-07-18 15:16:17 -07:00 committed by GitHub
commit 13eef6855e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -604,7 +604,7 @@ function LintAnsibleFiles() {
#################################
# Get list of all files to lint #
#################################
mapfile -t LIST_FILES < <(ls "$ANSIBLE_DIRECTORY/*.yml" 2>&1)
mapfile -t LIST_FILES < <(ls "$ANSIBLE_DIRECTORY"/*.{yaml,yml} 2>&1)
###############################################################
# Set the list to empty if only MD and TXT files were changed #