From: Karl Berry Date: Mon, 11 Jun 2012 00:07:44 +0000 (-0700) Subject: do not ask for gpg pw with --dry-run X-Git-Tag: v0.1~624 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=ddc74a7849d0486e9b53e163a3e032a91fc73033;p=gnulib.git do not ask for gpg pw with --dry-run --- 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