From 1ba155c8e53edc2dca15d204eb5514db30e39565 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Thu, 25 Aug 2022 13:29:33 +0200 Subject: [PATCH] fix(build): extra options in latex build script --- build_tools/latex.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_tools/latex.sh b/build_tools/latex.sh index ee2a23c..0854d4d 100755 --- a/build_tools/latex.sh +++ b/build_tools/latex.sh @@ -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