summaryrefslogtreecommitdiff
path: root/test/script/check-toc
diff options
context:
space:
mode:
authorKevin Clark <kevin.clark@gmail.com>2020-11-28 07:55:35 -0800
committerKevin Clark <kevin.clark@gmail.com>2020-11-28 07:55:35 -0800
commit469af2a73472cd81a475c203cf1175caf1db74a9 (patch)
tree8a075d81b2687f66a86bd2058091d141020f2f1e /test/script/check-toc
parent99f1874e865ba1bfd8e3ae3a06a966b9be677a02 (diff)
downloadale-469af2a73472cd81a475c203cf1175caf1db74a9.zip
Fix TOC tests
Sort order is slightly different than the headings
Diffstat (limited to 'test/script/check-toc')
-rwxr-xr-xtest/script/check-toc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/script/check-toc b/test/script/check-toc
index 87a61262..7a7705ce 100755
--- a/test/script/check-toc
+++ b/test/script/check-toc
@@ -35,7 +35,7 @@ sed -n "$toc_start_line,$toc_end_line"p doc/ale.txt \
> "$toc_file"
# Get all of the doc files in a natural sorted order.
-doc_files="$(/usr/bin/env ls -1v doc | grep ^ale- | sed 's/^/doc\//' | paste -sd ' ' -)"
+doc_files="$(/usr/bin/env ls -1 doc | awk '/ale-/' | sed 's/^/doc\//' | paste -sd ' ' -)"
# shellcheck disable=SC2086
grep -h '\*ale-.*-options\|^[a-z].*\*ale-.*\*$' $doc_files \