From f4834a4b0de1d52aa233bff60536a3884c6bc93a Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 30 Nov 2023 14:03:18 -0500 Subject: [PATCH] check-format: Trim weird line that's getting added to output --- scripts/check-format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3