Skip to content

Commit cc79a58

Browse files
trentmLiudmila Molkova
andauthored
[chore] Fix 'make check' on macOS (#2493)
Co-authored-by: Liudmila Molkova <[email protected]>
1 parent 8638e7b commit cc79a58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ misspell-correction: $(MISSPELL)
108108
$(MISSPELL) -w $(ALL_DOCS)
109109

110110
.PHONY: normalized-link-check
111-
# NOTE: we check `model/[a-z]*` to avoid `model/README.md`, which contains
112-
# valid occurrences of `../docs/`.
111+
# NOTE: Search "model/*/**" rather than "model" to skip `model/README.md`, which
112+
# contains valid occurrences of `../docs/`.
113113
normalized-link-check:
114-
@if grep -R '\.\./docs/' docs model/[a-z]*; then \
114+
@if grep -R '\.\./docs/' docs model/*/**; then \
115115
echo "\nERROR: Found occurrences of '../docs/'; see above."; \
116116
echo " Remove the '../docs/' from doc page links referencing doc pages."; \
117117
exit 1; \

0 commit comments

Comments
 (0)