From b1525fa76189574649c8d2ac64b18354dd95d0c8 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 30 Jun 2020 14:27:36 -0500 Subject: [PATCH] that loop was dumb --- lib/worker.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/lib/worker.sh b/lib/worker.sh index 10e8ca42..c7444676 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -519,19 +519,10 @@ function LintAnsibleFiles() ###################################################### if [ -d "$ANSIBLE_DIRECTORY" ]; then - ############################################################ - # Check to see if we need to go through array or all files # - ############################################################ - if [ "$VALIDATE_ALL_CODEBASE" == "false" ]; then - # 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 + ################################# + # Get list of all files to lint # + ################################# + mapfile -t LIST_FILES < <(ls "$ANSIBLE_DIRECTORY/*.yml" 2>&1) ############################################################### # Set the list to empty if only MD and TXT files were changed #