cleanup missing -P specifier on grep regex

looks like the regex is perl syntax
This commit is contained in:
bunnie 2024-01-11 21:44:11 +08:00
parent ca5845c2f6
commit 5f0e2a48b0

View file

@ -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";'