Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 652a974

Browse files
author
John Andersen
committed
ci: Fix trailing whitespace check
Signed-off-by: John Andersen <[email protected]>
1 parent 86a4816 commit 652a974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ function run_whitespace() {
8383
rm -f "$whitespace"
8484
}
8585
trap rmtempfile EXIT
86-
( find dffml -type f -name \*.py -exec grep -EHn " +$" {} \; ) 2>&1 \
87-
| tee "$whitespace"
86+
find . -type f -name '*.py' -exec grep -EHn " +$" {} \; 2>&1 > "$whitespace"
8887
lines=$(wc -l < "$whitespace")
8988
if [ "$lines" -ne 0 ]; then
9089
echo "Trailing whitespace found" >&2
90+
cat "${whitespace}" >&2
9191
exit 1
9292
fi
9393
}

0 commit comments

Comments
 (0)