From d1ddea86d4bcc033cc22a7ecce0a66b89c3b4010 Mon Sep 17 00:00:00 2001 From: PromptPunksFauxCough <200402670+PromptPunksFauxCough@users.noreply.github.com> Date: Mon, 3 Mar 2025 17:02:31 +0000 Subject: [PATCH] sane gpg verify --- .../scripts/1-TemplateVM/1.0-haveno-templatevm.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/install_whonix_qubes/scripts/1-TemplateVM/1.0-haveno-templatevm.sh b/scripts/install_whonix_qubes/scripts/1-TemplateVM/1.0-haveno-templatevm.sh index e61722e044..b908c3f166 100644 --- a/scripts/install_whonix_qubes/scripts/1-TemplateVM/1.0-haveno-templatevm.sh +++ b/scripts/install_whonix_qubes/scripts/1-TemplateVM/1.0-haveno-templatevm.sh @@ -93,12 +93,10 @@ function remote { ## Verify the downloaded binary with the signature: echo_blue "Verifying the signature of the downloaded file ..." - OUTPUT=$(gpg --digest-algo SHA256 --verify "${signature_filename}" "${binary_filename}" 2>&1) - - if ! echo "$OUTPUT" | grep -q "Good signature from"; then - echo_red "Verification failed: $OUTPUT" + if gpg --digest-algo SHA256 --verify "${signature_filename}" >/dev/null 2>&1; then + 7z x "${binary_filename}" && mv haveno*.deb "${package_filename}"; + else echo_red "Verification failed!" && sleep 5 exit 1; - else 7z x "${binary_filename}" && mv haveno*.deb "${package_filename}" fi