mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
guix-verify: Non-zero exit code when anything fails
Previously, if verification fails, the correct message will be printed, but the exit code would still be 0.
This commit is contained in:
parent
b620b2d58a
commit
d451b60d22
1 changed files with 6 additions and 0 deletions
|
@ -77,11 +77,13 @@ verify() {
|
||||||
echo ""
|
echo ""
|
||||||
echo "Hint: Either the signature is invalid or the public key is missing"
|
echo "Hint: Either the signature is invalid or the public key is missing"
|
||||||
echo ""
|
echo ""
|
||||||
|
failure=1
|
||||||
elif ! diff --report-identical "$compare_manifest" "$current_manifest" 1>&2; then
|
elif ! diff --report-identical "$compare_manifest" "$current_manifest" 1>&2; then
|
||||||
echo "ERR: The SHA256SUMS attestation in these two directories differ:"
|
echo "ERR: The SHA256SUMS attestation in these two directories differ:"
|
||||||
echo " '${compare_manifest}'"
|
echo " '${compare_manifest}'"
|
||||||
echo " '${current_manifest}'"
|
echo " '${current_manifest}'"
|
||||||
echo ""
|
echo ""
|
||||||
|
failure=1
|
||||||
else
|
else
|
||||||
echo "Verified: '${current_manifest}'"
|
echo "Verified: '${current_manifest}'"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -166,3 +168,7 @@ if (( ${#all_noncodesigned[@]} + ${#all_all[@]} == 0 )); then
|
||||||
echo ""
|
echo ""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$failure" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue