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