Skip to content

Commit

Permalink
fix: logic to verify M of N signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Jan 17, 2025
1 parent de5937f commit 085661e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/sys-bitcoin/configure-builder.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]>
SPDX-FileCopyrightText: 2024 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}
Expand Down Expand Up @@ -67,7 +67,7 @@ include:
- name: |
trusted_sigs_number="4"
read_sigs_number="$(GNUPGHOME=/home/user/.gnupg/bitcoin/ gpg --status-fd=2 --verify SHA256SUMS.asc 2>&1 | grep -c -e "^\[GNUPG:\] GOODSIG \S\+ ")"
if test "${trusted_sigs_number}" != "${read_sigs_number}"; then
if test -z "${trusted_sigs_number}" || test "${read_sigs_number}" -lt "${trusted_sigs_number}"; then
exit 1
fi
- cwd: /tmp/bitcoin-download
Expand Down

0 comments on commit 085661e

Please sign in to comment.