File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,7 @@ cd "${ROOT}"
45
45
# Update tables of contents if necessary.
46
46
find keps -name ' *.md' \
47
47
| grep -Fxvf hack/.notableofcontents \
48
- | xargs mdtoc --inplace --max-depth=5
48
+ | xargs mdtoc --inplace --max-depth=5 || (
49
+ echo " Failed generating TOC. If this failed silently and you are on mac, try 'brew install grep'"
50
+ exit 1
51
+ )
Original file line number Diff line number Diff line change @@ -46,4 +46,7 @@ echo "Checking table of contents are up to date..."
46
46
# Verify tables of contents are up-to-date
47
47
find keps -name ' *.md' \
48
48
| grep -Fxvf hack/.notableofcontents \
49
- | xargs mdtoc --inplace --max-depth=5 --dryrun
49
+ | xargs mdtoc --inplace --max-depth=5 --dryrun || (
50
+ echo " Table of content not up to date. If this failed silently and you are on mac, try 'brew install grep'"
51
+ exit 1
52
+ )
You can’t perform that action at this time.
0 commit comments