From 7a04ff98273f884bb36ac350254a9d220d8431ce Mon Sep 17 00:00:00 2001 From: xieby1 Date: Thu, 23 Jun 2022 23:02:51 +0800 Subject: [PATCH] old pandoc not fallback to data dir if is absolute path https://github.com/jgm/pandoc/issues/7077 --- revealjs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/revealjs.sh b/revealjs.sh index c096da0..daa3f48 100755 --- a/revealjs.sh +++ b/revealjs.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -TEMPLATE="$(dirname $(realpath $0))/template.html" +TEMPLATE="$(dirname $(realpath --relative-to=. $0))/template.html" MD=$1 REVEALJS="https://cdn.bootcdn.net/ajax/libs/reveal.js/4.3.1" @@ -37,3 +37,4 @@ CMD=( ) eval "${CMD[@]}" +# echo "${CMD[@]}"