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
rodzic 16da064a24
commit f782b24d84

Wyświetl plik

@ -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
}