about summary refs log tree commit diff stats
path: root/common/scripts/latex/build.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:15:42 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:15:42 +0200
commit5d9be1742bbf7c6be361c1580ecbb22480b655fa (patch)
tree1f659d46d84e348c02f1cc820ac45c4ec20c0c01 /common/scripts/latex/build.sh
parentbuild(templates.nix): Register new `latex/presentation` template (diff)
downloadflake-templates-5d9be1742bbf7c6be361c1580ecbb22480b655fa.tar.gz
flake-templates-5d9be1742bbf7c6be361c1580ecbb22480b655fa.zip
fix(templates/latex/presentation): Get to compile
Diffstat (limited to 'common/scripts/latex/build.sh')
-rwxr-xr-xcommon/scripts/latex/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/scripts/latex/build.sh b/common/scripts/latex/build.sh
index 1ff2b6e..80ecc57 100755
--- a/common/scripts/latex/build.sh
+++ b/common/scripts/latex/build.sh
@@ -46,8 +46,8 @@ fd . "$root/figures" --type file --extension tex | while read -r figure; do
         echo "   -> Didn't change, not re-compiling."
     else
         echo "$figure_hash" >"$dst/figures/$figure_name/$figure_name.sha256sum_hash"
-        pdflatex -output-directory="$dst" -file-line-error -jobname="figures/$figure_name/$figure_name" "$figure"
+        pdflatex -output-directory="$dst" -file-line-error -jobname="figures/$figure_name/$figure_name" "$figure" || exit 1
     fi
-done
+done || exit 1
 
 latexmk -outdir="$dst" -file-line-error -pdflatex -recorder "$file"