This is an automated email from the ASF dual-hosted git repository. mmiklavcic pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/metron.git
The following commit(s) were added to refs/heads/master by this push: new d92e0a2 METRON-2075 Site book build support for MacOS that has GNU sed installed (tigerquoll via mmiklavc) closes apache/metron#1384 d92e0a2 is described below commit d92e0a2102306ce6d6b6b2a8c986590b030d4a88 Author: tigerquoll <tigerqu...@outlook.com> AuthorDate: Mon May 13 16:59:01 2019 -0600 METRON-2075 Site book build support for MacOS that has GNU sed installed (tigerquoll via mmiklavc) closes apache/metron#1384 --- site-book/bin/generate-md.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-book/bin/generate-md.sh b/site-book/bin/generate-md.sh index 1d1e6f8..219e2b5 100755 --- a/site-book/bin/generate-md.sh +++ b/site-book/bin/generate-md.sh @@ -264,8 +264,9 @@ for (( i=0; i<${#HREF_REWRITE_LIST[@]} ; i+=2 )) ; do sed -i -e "${HREF_REWRITE_LIST[ $(( i + 1 )) ]}" "${HREF_REWRITE_LIST[$i]}" ;; darwin*) + # Use absolute path to ensure that MacOS sed is being used # MacOS sed needs an empty-string argument after -i option to get the same result - sed -i '' -e "${HREF_REWRITE_LIST[ $(( i + 1 )) ]}" "${HREF_REWRITE_LIST[$i]}" + /usr/bin/sed -i '' -e "${HREF_REWRITE_LIST[ $(( i + 1 )) ]}" "${HREF_REWRITE_LIST[$i]}" ;; *) echo "ERROR: Unable to determine 'sed' argument list for OS ${OSTYPE}" > /dev/stderr