Skip to content

Commit

Permalink
Fix array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Oct 9, 2024
1 parent effcb5a commit b6fd207
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/helpers/check_urls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ read -r -a ignore_dirs <<<"$IGNORE_DIRS"
read -r -a ignore_patterns <<<"$IGNORE_PATTERNS"

IGNORE_FILES_ARG=""
for item in "${!ignore_files[@]}"; do
IGNORE_FILES_ARG="$IGNORE_FILES_ARG--exclude=$item"
for item in "${ignore_files[@]}"; do
IGNORE_FILES_ARG="$IGNORE_FILES_ARG --exclude=$item"
done
IGNORE_DIRS_ARG=""
for item in "${!ignore_dirs[@]}"; do
IGNORE_DIRS_ARG="$IGNORE_DIRS_ARG--exclude-dir=$item"
for item in "${ignore_dirs[@]}"; do
IGNORE_DIRS_ARG="$IGNORE_DIRS_ARG --exclude-dir=$item"
done

#Find URLs in code:
Expand All @@ -41,7 +41,7 @@ FAILED_LINKS=()
for item in $urls; do
# echo $item
skip=0
for pattern in "${!ignore_patterns[@]}"; do
for pattern in "${ignore_patterns[@]}"; do
[[ "$item" =~ $pattern ]] && skip=1
done

Expand Down

0 comments on commit b6fd207

Please sign in to comment.