From 4c29044a83e1926a31ebb5ab8e01fabd0c9e240a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 27 Oct 2024 11:15:21 +0100 Subject: [PATCH] fix: util/check-format-commit.sh - fix ending check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Look at the end result instead of the file name it's stored in Reviewed-by: Tom Cosgrove Reviewed-by: Saša Nedvědický Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/25810) --- util/check-format-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/check-format-commit.sh b/util/check-format-commit.sh index 5c9aef8ad961f..206827dd8669a 100755 --- a/util/check-format-commit.sh +++ b/util/check-format-commit.sh @@ -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