Skip to content

Commit 415a3e8

Browse files
committed
Fix wrong glob (again)
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.
1 parent 0ede2d3 commit 415a3e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/check_line_lengths.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ if [ "$MAX_LINE_LENGTH" == "" ]; then
1010
fi
1111

1212
if [ "$1" == "" ]; then
13-
files=( src/**.md )
13+
shopt -s globstar
14+
files=( src/**/*.md )
1415
else
1516
files=( "$@" )
1617
fi

0 commit comments

Comments
 (0)