commit d56a023bff4973cd73e920405345b0c31e2bd1db
parent 7f07a72dcb948c46ad6b65bc3c4ba7b65ae898c0
Author: mjkloeckner <martin.cachari@gmail.com>
Date: Sun, 30 Apr 2023 20:48:47 -0300
use script location as default template location
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/md2pdf b/md2pdf
@@ -8,7 +8,8 @@ usage() {
filename=$(echo "$1" | sed 's/\.[^.]*$//')
extension=$(echo "$1" | sed 's/^.*\.//')
-style_path="/home/mk/dox/sync/sync/md2pdf/style.tex"
+md2pdf_path=$(dirname $(readlink -f $0))
+style_path=$md2pdf_path"/style.tex"
output="$filename.pdf"
[ "$extension" != "md" ] && \