]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
check-format: Trim weird line that's getting added to output
authorRay Strode <rstrode@redhat.com>
Thu, 30 Nov 2023 19:03:18 +0000 (14:03 -0500)
committerRay Strode <rstrode@redhat.com>
Sat, 2 Dec 2023 22:44:06 +0000 (17:44 -0500)
scripts/check-format.sh

index aa04e2e32b37d13061e291a1666682b22aff84fd..8f280ddac9cf29f2179d59fd826db7b1c3fa479b 100755 (executable)
@@ -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