Add helper install option
All checks were successful
Create and publish container / build_container (push) Successful in 15s
All checks were successful
Create and publish container / build_container (push) Successful in 15s
This commit is contained in:
@@ -3,22 +3,31 @@
|
||||
set -e
|
||||
|
||||
WORKDIR="$1"
|
||||
EXTRA_ARGS="$2"
|
||||
EXTRA_PKGS="$3"
|
||||
INSTALL_HELPERS="$2"
|
||||
EXTRA_ARGS="$3"
|
||||
EXTRA_PKGS="$4"
|
||||
|
||||
if [ -n "$EXTRA_PKGS" ]; then
|
||||
for pkg in $EXTRA_PKGS; do
|
||||
echo "Install $pkg by apk"
|
||||
echo "Install $pkg with apk"
|
||||
apk add "$pkg"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "$INSTALL_HELPERS" ]; then
|
||||
if [[ "$INSTALL_HELPERS" == "true" ]]; then
|
||||
CURR_DIR=$(pwd)
|
||||
mkdir ~/projects/
|
||||
cd ~/projects/
|
||||
git clone https://git.janishutz.com/janishutz/latex
|
||||
cd "$CURR_DIR"
|
||||
fi
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user