All checks were successful
Create and publish container / build_container (push) Successful in 5s
25 lines
391 B
Bash
Executable File
25 lines
391 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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
|
|
fi
|
|
|
|
if [ -n "$WORKDIR" ]; then
|
|
cd "$WORKDIR"
|
|
fi
|
|
|
|
ls
|
|
|
|
echo "Runner started, will run latexmk with extra args $EXTRA_ARGS"
|
|
|
|
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS
|