Skip to content

Commit

Permalink
cleanup missing -P specifier on grep regex
Browse files Browse the repository at this point in the history
looks like the regex is perl syntax
  • Loading branch information
bunnie committed Jan 11, 2024
1 parent ca5845c commit 5f0e2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/trailing_whitespace_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
- name: Check .rs files for trailing whitespace
run: >
find . -name '*.rs' -print0
| xargs -0 grep -c --with-filename '[ \t]$'
| xargs -0 grep -c --with-filename -P '[ \t]$'
| grep -v ':0$'
| perl -e 'while(<>){print;$n+=1};if($n>0){exit 1;};print "PASS\n";'

0 comments on commit 5f0e2a4

Please sign in to comment.