From 5f0e2a48b0f0251869fe6489a87a174252d1664a Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 11 Jan 2024 21:44:11 +0800 Subject: [PATCH] cleanup missing -P specifier on grep regex looks like the regex is perl syntax --- .github/workflows/trailing_whitespace_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trailing_whitespace_check.yml b/.github/workflows/trailing_whitespace_check.yml index 6635dd60f..6ed97eb89 100644 --- a/.github/workflows/trailing_whitespace_check.yml +++ b/.github/workflows/trailing_whitespace_check.yml @@ -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";' \ No newline at end of file