1
Fork 0

cd into template dir when building

This commit is contained in:
Jake Howard 2018-04-03 13:48:04 +01:00
parent 5f595e460d
commit de2203b43c

View file

@ -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