09550fdd285f49733cbf89aa1d00e2c808259901
- Author
- zertrin <zrk951@gmail.com>
- Committer
- zertrin <zrk951@gmail.com>
- Date
Message
Merge pull request #121 from dismantl/gpg_backslashes
added -r flag to bash read to allow backslashes in GPG passphrases
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index ef7aa12db76448a8c4823015d68a82e645daedb3..9a2fbbf10264a16581269360a87c74854288be6b 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -594,7 +594,7 @@ setup_passphrase()
6 {
7 if [ ! -z "${GPG_ENC_KEY}" -a ! -z "${GPG_SIGN_KEY}" -a "${GPG_ENC_KEY}" != "${GPG_SIGN_KEY}" ]; then
8 echo -n "Please provide the passphrase for decryption (GPG key 0x${GPG_ENC_KEY}): "
9- builtin read -s ENCPASSPHRASE
10+ builtin read -s -r ENCPASSPHRASE
11 echo -ne "\n"
12 PASSPHRASE=${ENCPASSPHRASE}
13 export PASSPHRASE