From 1f941e48c1c644b2963fa1f3ada9d738d76b809c Mon Sep 17 00:00:00 2001 From: Anita Akaeze Date: Wed, 20 Sep 2023 16:10:38 -0700 Subject: [PATCH] Fix for loop in filter_changed_files_go_test script (#18931) * iterate through array * remove comment --- .github/scripts/filter_changed_files_go_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/filter_changed_files_go_test.sh b/.github/scripts/filter_changed_files_go_test.sh index ce5380f8f1..d85e85f5f9 100755 --- a/.github/scripts/filter_changed_files_go_test.sh +++ b/.github/scripts/filter_changed_files_go_test.sh @@ -19,7 +19,7 @@ files_to_check=$(git diff --name-only "$(git merge-base origin/$SKIP_CHECK_BRANC skipped_directories=("docs/" "ui/" "website/" "grafana/") # Loop through the changed files and find directories/files outside the skipped ones -for file_to_check in $files_to_check; do +for file_to_check in "${files_to_check[@]}"; do file_is_skipped=false for dir in "${skipped_directories[@]}"; do if [[ "$file_to_check" == "$dir"* ]] || [[ "$file_to_check" == *.md && "$dir" == *"/" ]]; then