a719668f15391260ab028533d716708a7e457f1e

Author
Dan Staples <dan@disman.tl>
Committer
Dan Staples <dan@disman.tl>
Date

Message

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