From 0300aa85f3ba8cc7cdd38f719628dc0a28170c84 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Mon, 8 Jan 2018 23:56:30 +0100 Subject: Simplify logic and streamline lint-repository.sh We inline should-check-whitespace.sh in check-eof-newline.sh simplifying the find invocation. --- dev/lint-repository.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dev/lint-repository.sh') diff --git a/dev/lint-repository.sh b/dev/lint-repository.sh index 95b72787f..e3ec51aeb 100755 --- a/dev/lint-repository.sh +++ b/dev/lint-repository.sh @@ -28,8 +28,7 @@ fi # Check that the files with 'whitespace' gitattribute end in a newline. # xargs exit status is 123 if any file failed the test -find . "(" -path ./.git -prune ")" -type f \ --o "(" -exec dev/tools/should-check-whitespace.sh '{}' ';' ")" \ --print0 | xargs -0 -L 1 dev/tools/check-eof-newline.sh || CODE=1 +find . "(" -path ./.git -prune ")" -o -type f -print0 | + xargs -0 dev/tools/check-eof-newline.sh || CODE=1 exit $CODE -- cgit v1.2.3