From 469af2a73472cd81a475c203cf1175caf1db74a9 Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Sat, 28 Nov 2020 07:55:35 -0800 Subject: Fix TOC tests Sort order is slightly different than the headings --- test/script/check-toc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/script/check-toc') 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 \ -- cgit v1.2.3