From: Ray Strode Date: Thu, 30 Nov 2023 19:03:18 +0000 (-0500) Subject: check-format: Trim weird line that's getting added to output X-Git-Tag: 23.51.283~17^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4834a4b0de1d52aa233bff60536a3884c6bc93a;p=thirdparty%2Fplymouth.git check-format: Trim weird line that's getting added to output --- diff --git a/scripts/check-format.sh b/scripts/check-format.sh index aa04e2e3..8f280dda 100755 --- a/scripts/check-format.sh +++ b/scripts/check-format.sh @@ -29,7 +29,7 @@ find -name '*.[ch]' -exec git diff -- {} \; >> before interdiff -B --no-revert-omitted before after > diff -if [ -n "$(cat diff)" ]; then +if [ -n "$(cat diff | grep -vE '^only in patch[12]:')" ]; then echo "Uncrustify found style abnormalities" 2>&1 cat diff exit 1