From c68eca6363751299d9b09b9e93380dac8ea4da52 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 24 Feb 2025 10:52:39 +0100 Subject: [PATCH] tools: Add envvar GPG_AUTHCODE_SIGN_MODE to disable signing. * tools/gpg-authcode-sign.sh: Check envvar for value "disable". --- tools/gpg-authcode-sign.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/gpg-authcode-sign.sh b/tools/gpg-authcode-sign.sh index 35a0f3827..91e33bcec 100755 --- a/tools/gpg-authcode-sign.sh +++ b/tools/gpg-authcode-sign.sh @@ -24,6 +24,7 @@ Options: [--url=STRING] Include STRING as URL (default=$url) [--stamp] Use a stamp file to avoid double signing [--dry-run] Do not actually run osslsigncode + (same as GPG_AUTHCODE_SIGN_MODE=disable) [--template] Print a template for ~/.gnupg-autogenrc [--version] Print version and exit EOF @@ -183,6 +184,9 @@ if [ ! -f $autogenrc ]; then exit 1 fi +[ "$GPG_AUTHCODE_SIGN_MODE" = "disable" ] && dryrun=yes + + # Define the cleanup routine for osslsigncode cleanup() {