mirror of
https://github.com/zen-browser/desktop
synced 2026-04-25 17:15:00 +02:00
no-bug: Correctly parse mar sign output for verification (gh-13363)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user