Merge pull request #121 from dismantl/gpg_backslashes

added -r flag to bash read to allow backslashes in GPG passphrases
This commit is contained in:
zertrin 2016-04-10 16:36:20 +02:00
commit 09550fdd28

View file

@ -594,7 +594,7 @@ setup_passphrase()
{
if [ ! -z "${GPG_ENC_KEY}" -a ! -z "${GPG_SIGN_KEY}" -a "${GPG_ENC_KEY}" != "${GPG_SIGN_KEY}" ]; then
echo -n "Please provide the passphrase for decryption (GPG key 0x${GPG_ENC_KEY}): "
builtin read -s ENCPASSPHRASE
builtin read -s -r ENCPASSPHRASE
echo -ne "\n"
PASSPHRASE=${ENCPASSPHRASE}
export PASSPHRASE