From de2203b43cbc5ad3862cd9154e32db8b4262df8a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 3 Apr 2018 13:48:04 +0100 Subject: [PATCH] cd into template dir when building --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 13f37ea..1ce5aea 100755 --- a/build.sh +++ b/build.sh @@ -20,7 +20,7 @@ fi PANDOC_ARGS="$INPUT_FILES --lua-filter=$SCRIPTPATH/variables.lua --template $SCRIPTPATH/main.tex -o $OUTPUT_FILE $ADDITIONAL_ARGS" echo "> Building document..." -pandoc $PANDOC_ARGS +cd $SCRIPTPATH && pandoc $PANDOC_ARGS echo "> Running second pass..." -pandoc --lua-filter=$SCRIPTPATH/word-count.lua $PANDOC_ARGS +cd $SCRIPTPATH && pandoc --lua-filter=$SCRIPTPATH/word-count.lua $PANDOC_ARGS