Skip to content

Commit 0a5025e

Browse files
committed
Read ex_doc from environment if set
1 parent 3c3d26b commit 0a5025e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

make/ex_doc_wrapper.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ ARGS=("$@")
44

55
set -eo pipefail {0}
66

7-
EX_DOC=$(command -v ex_doc || true)
7+
## If EX_DOC is not set to a file, we search the PATH for it using command -v
8+
if [ ! -f "${EX_DOC}" ]; then
9+
EX_DOC=$(command -v ex_doc || true)
10+
fi
811

912
if [ -z "${EX_DOC}" ]; then
1013
echo -n "Could not find ex_doc! "

0 commit comments

Comments
 (0)