From ddc74a7849d0486e9b53e163a3e032a91fc73033 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 10 Jun 2012 17:07:44 -0700 Subject: [PATCH] do not ask for gpg pw with --dry-run --- ChangeLog | 2 ++ build-aux/gnupload | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3758273f..e7eebc77d 100644 --- 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 index bedf15958..186d2add3 100755 --- a/build-aux/gnupload +++ b/build-aux/gnupload @@ -249,11 +249,13 @@ unset passphrase # 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 -- 2.11.0