From dcb563a740bf7e2bfb373eec478a2e70c9fa04c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 16 Jan 2020 20:58:33 +0100 Subject: [PATCH] workaround indirection --- scripts/mdr2mdbook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mdr2mdbook.sh b/scripts/mdr2mdbook.sh index 52da77e1..d3caf84f 100644 --- a/scripts/mdr2mdbook.sh +++ b/scripts/mdr2mdbook.sh @@ -25,7 +25,8 @@ ensure_dir() { doc2src() { mdr $1 || return mdfile=${1::-1} - target=$(sed 's/docs/md/' <<< $mdfile) +# target=$(sed 's/docs/md/' <<< $mdfile) + target=$(echo "$mdfile" | sed 's/docs/md/') ensure_dir $target mk_target $mdfile > $target rm $mdfile -- 2.43.0