Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 25d4201

Browse files
committedFeb 1, 2021
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

Lines changed: 1 addition & 0 deletions
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)
Please sign in to comment.