# HG changeset patch # User Karl Berry # Date 1339373264 25200 # Node ID 1cdf36c56e21782dda1baf1169c2151a022d4edb # Parent 1b163013d9bf4b60a1f5c8f93012eb9aed54b315 do not ask for gpg pw with --dry-run diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2012-06-10 Karl Berry + * build-aux/gnupload: with --dry-run, do not ask for gpg pw. + * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2. 2012-06-10 Bruce Korb diff --git a/build-aux/gnupload b/build-aux/gnupload --- a/build-aux/gnupload +++ b/build-aux/gnupload @@ -249,11 +249,13 @@ # listings with their arguments...). # Remember this script runs with 'set -e', so if echo is not built-in # it will exit now. -PATH=/empty echo -n "Enter GPG passphrase: " -stty -echo -read -r passphrase -stty echo -echo +if $dry_run; then :; else + PATH=/empty echo -n "Enter GPG passphrase: " + stty -echo + read -r passphrase + stty echo + echo +fi if test $# -ne 0; then for file