aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-02-24 09:52:39 +0000
committerWerner Koch <[email protected]>2025-02-24 09:52:39 +0000
commitc68eca6363751299d9b09b9e93380dac8ea4da52 (patch)
treee09414e5dc7cf0ab1b24888baf1419012d67fa01
parentdirmngr: Prepare for new command KS_DEL. (diff)
downloadgnupg-c68eca6363751299d9b09b9e93380dac8ea4da52.tar.gz
gnupg-c68eca6363751299d9b09b9e93380dac8ea4da52.zip
tools: Add envvar GPG_AUTHCODE_SIGN_MODE to disable signing.
* tools/gpg-authcode-sign.sh: Check envvar for value "disable".
-rwxr-xr-xtools/gpg-authcode-sign.sh4
1 files changed, 4 insertions, 0 deletions
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()
{