From 55041f89332c46690c1a339f8abeffa97695ad7e Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Wed, 22 Apr 2026 23:08:21 +0200 Subject: [PATCH] no-bug: Correctly parse mar sign output for verification (gh-13363) --- scripts/mar_verify.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mar_verify.sh b/scripts/mar_verify.sh index 67f939ecc..f9b5d670b 100755 --- a/scripts/mar_verify.sh +++ b/scripts/mar_verify.sh @@ -119,8 +119,8 @@ verify_signature_count() { local mar="$1" local info count info=$(mar_info "$mar") - # signmar -T prints one "Signature :" line per signature block. - count=$(echo "$info" | grep -cE '^[[:space:]]*Signature[[:space:]]+[0-9]+:' || true) + # signmar -T prints one "Signature block found with 1 signature" line per signature block. + count=$(echo "$info" | grep -cE '^[[:space:]]*Signature block found with [0-9]+ signature' || true) if [ "$count" != "1" ]; then fail "$mar has $count signatures, expected exactly 1" else