Skip to content

Commit b6fd207

Browse files
author
Felix Exner
committed
Fix array handling
1 parent effcb5a commit b6fd207

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/helpers/check_urls.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ read -r -a ignore_dirs <<<"$IGNORE_DIRS"
2424
read -r -a ignore_patterns <<<"$IGNORE_PATTERNS"
2525

2626
IGNORE_FILES_ARG=""
27-
for item in "${!ignore_files[@]}"; do
28-
IGNORE_FILES_ARG="$IGNORE_FILES_ARG--exclude=$item"
27+
for item in "${ignore_files[@]}"; do
28+
IGNORE_FILES_ARG="$IGNORE_FILES_ARG --exclude=$item"
2929
done
3030
IGNORE_DIRS_ARG=""
31-
for item in "${!ignore_dirs[@]}"; do
32-
IGNORE_DIRS_ARG="$IGNORE_DIRS_ARG--exclude-dir=$item"
31+
for item in "${ignore_dirs[@]}"; do
32+
IGNORE_DIRS_ARG="$IGNORE_DIRS_ARG --exclude-dir=$item"
3333
done
3434

3535
#Find URLs in code:
@@ -41,7 +41,7 @@ FAILED_LINKS=()
4141
for item in $urls; do
4242
# echo $item
4343
skip=0
44-
for pattern in "${!ignore_patterns[@]}"; do
44+
for pattern in "${ignore_patterns[@]}"; do
4545
[[ "$item" =~ $pattern ]] && skip=1
4646
done
4747

0 commit comments

Comments
 (0)