+2004-01-28 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * lib/gnupload (GPG): Use an absolute path. Suggestion from Gary
+ V. Vaughan.
+ (passphrase): Unset it this variable before using it, in case it
+ was exported. Report from Scott James Remnant.
+
2004-01-25 Alexandre Duret-Lutz <adl@gnu.org>
* lib/gnupload (usage): Fix example.
#!/bin/sh
# Sign files and upload them.
-scriptversion=2004-01-25.02
+scriptversion=2004-01-28.17
# Copyright (C) 2004 Free Software Foundation
#
set -e
-GPG='gpg --batch --no-tty'
+GPG='/usr/bin/gpg --batch --no-tty'
to=
usage="Usage: $0 [OPTIONS]... FILES...
fi
done
+# Make sure passphrase is not exported in the environment.
+unset passphrase
+
# Reset PATH to be sure that echo is a built-in. We will later use
# `echo $passphrase' to output the passphrase, so it is important that
# it is a built-in (third-party programs tend to appear in `ps'
# 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