From f76ed005b8c2c41060a626fa83154954ba432592 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 23 Dec 2025 07:20:03 +0100 Subject: [PATCH] Update entrypoint --- latex/entrypoint.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/latex/entrypoint.sh b/latex/entrypoint.sh index 1d98e08..caa48dd 100755 --- a/latex/entrypoint.sh +++ b/latex/entrypoint.sh @@ -2,18 +2,23 @@ set -e -EXTRA_ARGS="$1" -EXTRA_PKGS="$2" +WORKDIR="$1" +EXTRA_ARGS="$2" +EXTRA_PKGS="$3" if [ -n "$EXTRA_PKGS" ]; then - for pkg in $EXTRA_PKGS; do - echo "Install $pkg by apk" - apk add "$pkg" - done + for pkg in $EXTRA_PKGS; do + echo "Install $pkg by apk" + apk add "$pkg" + done +fi + +if [ -n "$WORKDIR" ]; then + cd "$WORKDIR" fi ls /root echo "Runner started, will run latexmk with extra args $EXTRA_ARGS" -latexmk -pdf $EXTRA_ARGS +latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS