]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
fix: util/check-format-commit.sh - fix ending check
authorRichard Levitte <levitte@openssl.org>
Sun, 27 Oct 2024 10:15:21 +0000 (11:15 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 1 Nov 2024 15:57:48 +0000 (16:57 +0100)
Look at the end result instead of the file name it's stored in

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25810)

(cherry picked from commit 4c29044a83e1926a31ebb5ab8e01fabd0c9e240a)

util/check-format-commit.sh

index 5c9aef8ad961f1fb01168125c8ef7a1fd99f2eb0..206827dd8669a34480ff3a736127bf86bb30e6b4 100755 (executable)
@@ -164,7 +164,7 @@ done
 cat $TEMPDIR/results-filtered.txt
 
 # If any findings were in range, exit with a different error code
-if [ -n $TEMPDIR/results-filtered.txt ]
+if [ -s $TEMPDIR/results-filtered.txt ]
 then
     exit 2
 fi