Skip to content

Commit

Permalink
Merge pull request #228 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
wpoely86 authored Sep 12, 2024
2 parents 4edae94 + 88e3e8b commit 13994d0
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 13994d0

Please sign in to comment.