no-bug: Correctly parse mar sign output for verification (gh-13363)

This commit is contained in:
mr. m
2026-04-22 23:08:21 +02:00
committed by GitHub
parent 91f276dd0a
commit 55041f8933

View File

@@ -119,8 +119,8 @@ verify_signature_count() {
local mar="$1" local mar="$1"
local info count local info count
info=$(mar_info "$mar") info=$(mar_info "$mar")
# signmar -T prints one "Signature <n>:" line per signature block. # signmar -T prints one "Signature block found with 1 signature" line per signature block.
count=$(echo "$info" | grep -cE '^[[:space:]]*Signature[[:space:]]+[0-9]+:' || true) count=$(echo "$info" | grep -cE '^[[:space:]]*Signature block found with [0-9]+ signature' || true)
if [ "$count" != "1" ]; then if [ "$count" != "1" ]; then
fail "$mar has $count signatures, expected exactly 1" fail "$mar has $count signatures, expected exactly 1"
else else