Skip to content

Commit

Permalink
Fix word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Dec 7, 2022
1 parent 1400dd7 commit ad4024c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/shellCheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ declare -r DIRECTORIES_TO_IGNORE=(
)

# This lists all shell scripts in this repo except those in directories we want to ignore
SHELL_SCRIPTS=$(find . -type d \( -path "$(join_by_string " -o -path " "${DIRECTORIES_TO_IGNORE[@]}")" \) -prune -o -name '*.sh' -print)
read -ra IGNORE_DIRS < <(join_by_string ' -o -path ' "${DIRECTORIES_TO_IGNORE[@]}")
SHELL_SCRIPTS=$(find . -type d \( -path "${IGNORE_DIRS[@]}" \) -prune -o -name '*.sh' -print)
info "👀 Linting the following shell scripts using ShellCheck: $SHELL_SCRIPTS"
info

Expand Down

0 comments on commit ad4024c

Please sign in to comment.