From c43b07af1a2dddcad849c2dca359701776446f92 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Wed, 18 Jan 2023 09:43:28 +0100 Subject: [PATCH] [scripts] fix: remove tex compilation files only on success --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/compiler b/.local/bin/compiler index 8bdbef8..9016d3a 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -61,7 +61,7 @@ case "$file" in *config.def.h) sudo make clean install ;; *.c*|*.h*) make && ./main ;; *.mom) refer -PS -e "$file" | pdfmom > "$base.pdf" ;; - *.tex) texcompile "$base" ; texclear "$file" ;; + *.tex) texcompile "$base" && texclear "$file" ;; *.py) python "$file" ;; *) shebangtest ;; esac