Fix formatting

This commit is contained in:
2026-01-09 14:37:53 +01:00
parent 9b1947c521
commit c72186006f
2 changed files with 9 additions and 3 deletions

View File

@@ -7,4 +7,4 @@ RUN apk add texlive-binextra perl-file-homedir perl-yaml-tiny
COPY ./format.sh /root/
RUN chmod +x /root/format.sh
CMD [ "/root/format.sh" ]
ENTRYPOINT [ "/root/format.sh" ]

View File

@@ -12,6 +12,12 @@ idx=1
total=$(echo "$files" | wc -l)
for file in $files; do
echo "Processing file $idx / $total"
latexindent -s -w $file
((idx++))
latexindent -s -w -l $file
idx=$((idx + 1))
done
echo "Cleaning up..."
backups=$(find . -type f | grep "\.bak")
for backup in $backups; do
rm $backup
done