From 7f35d4f340645c0f273c1dcac8c1f06f56364246 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Fri, 9 Jan 2026 15:08:22 +0100 Subject: [PATCH] Formatting: Clean up better --- latex/fmt/format.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/latex/fmt/format.sh b/latex/fmt/format.sh index 378e501..57f1d6a 100755 --- a/latex/fmt/format.sh +++ b/latex/fmt/format.sh @@ -30,3 +30,9 @@ backups=$(find . -type f | grep "\.bak") for backup in $backups; do rm $backup done + +if [ -f .latexindent.yaml ]; then + rm .latexindent.yaml "$1/" || true +elif [ -f latexindent.yaml ]; then + rm latexindent.yaml "$1/" || true +fi