Skip to content

Commit 624f8c8

Browse files
committed
Fix latexindent check to use perl command for formatting .tex files as normal command is doing weird PATH things
1 parent e314cd1 commit 624f8c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Check formatting of all .tex files
7575
run: |
7676
find . -name "*.tex" | while read file; do
77-
latexindent "$file" > "$file.formatted"
77+
perl $(kpsewhich latexindent.pl) "$file" > "$file.formatted"
7878
if ! diff -q "$file" "$file.formatted" > /dev/null; then
7979
echo "::error file=$file::File is not properly formatted. Run 'make format' locally."
8080
exit 1

0 commit comments

Comments
 (0)