summaryrefslogtreecommitdiff
path: root/test/script/check-toc
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-08-03 12:42:22 +0100
committerDavid Wood <david@davidtw.co>2019-08-03 12:42:22 +0100
commit20cc6d3e055c3a8000509c4aac12ebc4a77ad2cd (patch)
tree80944ba0a32699129f726cae159102118fcfc327 /test/script/check-toc
parentdd1e1025b8a9b13cb7966bf2baa3e6b42a862857 (diff)
downloadale-20cc6d3e055c3a8000509c4aac12ebc4a77ad2cd.zip
Remove `/bin/ls` assumption.
On some systems, notably NixOS, there is no `/bin/ls` and thus this test can fail unnecessarily on those systems. This commit uses `/usr/bin/env ls` which resolves the issue.
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 f3a57ed2..87a61262 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="$(/bin/ls -1v doc | grep ^ale- | sed 's/^/doc\//' | paste -sd ' ' -)"
+doc_files="$(/usr/bin/env ls -1v doc | grep ^ale- | sed 's/^/doc\//' | paste -sd ' ' -)"
# shellcheck disable=SC2086
grep -h '\*ale-.*-options\|^[a-z].*\*ale-.*\*$' $doc_files \