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