From a719668f15391260ab028533d716708a7e457f1e Mon Sep 17 00:00:00 2001 From: Dan Staples Date: Wed, 6 Apr 2016 11:05:19 -0400 Subject: [PATCH] added -r flag to bash read to allow backslashes in GPG passphrases --- duplicity-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index ef7aa12..9a2fbbf 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -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