Fix formatting
This commit is contained in:
@@ -7,4 +7,4 @@ RUN apk add texlive-binextra perl-file-homedir perl-yaml-tiny
|
|||||||
COPY ./format.sh /root/
|
COPY ./format.sh /root/
|
||||||
RUN chmod +x /root/format.sh
|
RUN chmod +x /root/format.sh
|
||||||
|
|
||||||
CMD [ "/root/format.sh" ]
|
ENTRYPOINT [ "/root/format.sh" ]
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ idx=1
|
|||||||
total=$(echo "$files" | wc -l)
|
total=$(echo "$files" | wc -l)
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
echo "Processing file $idx / $total"
|
echo "Processing file $idx / $total"
|
||||||
latexindent -s -w $file
|
latexindent -s -w -l $file
|
||||||
((idx++))
|
idx=$((idx + 1))
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Cleaning up..."
|
||||||
|
backups=$(find . -type f | grep "\.bak")
|
||||||
|
for backup in $backups; do
|
||||||
|
rm $backup
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user