Fix for loop in filter_changed_files_go_test script (#18931)

* iterate through array

* remove comment
This commit is contained in:
Anita Akaeze 2023-09-20 16:10:38 -07:00 committed by GitHub
parent 700d1bb37c
commit 1f941e48c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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