Skip to content

Commit 25d4201

Browse files
committed
Fix wrong glob
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 cf568f3 commit 25d4201

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci/check_line_lengths.sh

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

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

0 commit comments

Comments
 (0)