[scripts] fix: remove tex compilation files only on success

This commit is contained in:
David JULIEN 2023-01-18 09:43:28 +01:00
parent d8a131a086
commit c43b07af1a

View File

@ -61,7 +61,7 @@ case "$file" in
*config.def.h) sudo make clean install ;; *config.def.h) sudo make clean install ;;
*.c*|*.h*) make && ./main ;; *.c*|*.h*) make && ./main ;;
*.mom) refer -PS -e "$file" | pdfmom > "$base.pdf" ;; *.mom) refer -PS -e "$file" | pdfmom > "$base.pdf" ;;
*.tex) texcompile "$base" ; texclear "$file" ;; *.tex) texcompile "$base" && texclear "$file" ;;
*.py) python "$file" ;; *.py) python "$file" ;;
*) shebangtest ;; *) shebangtest ;;
esac esac