Skip to content

Commit

Permalink
Fix wrong glob
Browse files Browse the repository at this point in the history
By default `**` behaves the same as two `*` side by side, i.e. it only
globs file paths, not directories. `shopt -s globstar` needs to be set
for it to mean a directory. I didn't notice this before now because
`globstar` is set by default in interactive mode, but not otherwise.
  • Loading branch information
jyn514 committed Feb 1, 2021
1 parent cf568f3 commit 25d4201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/check_line_lengths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if [ "$MAX_LINE_LENGTH" == "" ]; then
fi

if [ "$1" == "" ]; then
shopt -s globstar
files=( src/**/*.md )
else
files=( "$@" )
Expand Down

0 comments on commit 25d4201

Please sign in to comment.