fix(build): extra options in latex build script

This commit is contained in:
Matthieu Bessat 2022-08-25 13:29:33 +02:00
parent 7b21f50af4
commit 1ba155c8e5

View file

@ -23,7 +23,12 @@ SOURCE=build/latex/resume_$TARGET_LOCALE
echo "Source=$SOURCE"
wget $SERVER_URL/latex-resume --header="Accept-Language: $TARGET_LOCALE" -O $SOURCE.tex
if [ -n $OPTS ]
then
EXTRA_URL="?$OPTS"
fi
wget $SERVER_URL/latex-resume$EXTRA_URL --header="Accept-Language: $TARGET_LOCALE" -O $SOURCE.tex
pdflatex --output-directory=build/latex -halt-on-error -shell-escape $SOURCE.tex
[ ! -d ./.latex_cache ] && mkdir ./.latex_cache