Skip to content

Commit

Permalink
Merge pull request #164 from jrha/indent_check
Browse files Browse the repository at this point in the history
ci-scripts: Indent checker only accepts a single file
  • Loading branch information
jrha authored Sep 12, 2024
2 parents 9400e1f + 5362498 commit f004729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci-scripts/indent
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ rm -f /tmp/indent.py
wget -q https://raw.githubusercontent.com/stfc/Pan-Indenter/master/pan_indent_checker.py -O /tmp/indent.py
chmod u+x /tmp/indent.py

git diff --name-only HEAD^ | grep '\.pan$' | xargs -r /tmp/indent.py check || exit 1
git diff --name-only HEAD^ | grep '\.pan$' | xargs -rn1 /tmp/indent.py check || exit 1

0 comments on commit f004729

Please sign in to comment.