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
|
set -e
|
||||||
|
|
||||||
WORKDIR="$1"
|
WORKDIR="$1"
|
||||||
EXTRA_ARGS="$2"
|
INSTALL_HELPERS="$2"
|
||||||
EXTRA_PKGS="$3"
|
EXTRA_ARGS="$3"
|
||||||
|
EXTRA_PKGS="$4"
|
||||||
|
|
||||||
if [ -n "$EXTRA_PKGS" ]; then
|
if [ -n "$EXTRA_PKGS" ]; then
|
||||||
for pkg in $EXTRA_PKGS; do
|
for pkg in $EXTRA_PKGS; do
|
||||||
echo "Install $pkg by apk"
|
echo "Install $pkg with apk"
|
||||||
apk add "$pkg"
|
apk add "$pkg"
|
||||||
done
|
done
|
||||||
fi
|
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
|
if [ -n "$WORKDIR" ]; then
|
||||||
cd "$WORKDIR"
|
cd "$WORKDIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ls
|
|
||||||
|
|
||||||
echo "Runner started, will run latexmk with extra args $EXTRA_ARGS"
|
echo "Runner started, will run latexmk with extra args $EXTRA_ARGS"
|
||||||
|
|
||||||
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS
|
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS
|
||||||
|
|||||||
Reference in New Issue
Block a user