verify_sig: Disable set -e to actually print the error msg

This commit is contained in:
Albert S. 2023-04-07 23:28:39 +02:00
parent 16da064a24
commit f782b24d84
1 changed files with 3 additions and 1 deletions

View File

@ -78,10 +78,12 @@ print_usage()
verify_sig()
{
set +e
gpg --no-default-keyring --keyring "$1" --quiet --verify 2> "${CACHE_DIR}/last_gnupg_verify_result"
if [ $? -ne 0 ] ; then
fail "Signature check failed"
fail "Signature check failed - See "${CACHE_DIR}/last_gnupg_verify_result""
fi
set -e
}