f7bbf4ad708904ed4d97a21a9b248550a696d079

Author
zertrin <zrk951@gmail.com>
Committer
zertrin <zrk951@gmail.com>
Date

Message

Merge pull request #6 from pew/master

Set GPG_TTY

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index 21471800fbdcf5fb2ab8a8d888e8759e59f1ab9a..3c60d76af61f5980dbc34551e46bb31e5e8969c6 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -303,7 +303,7 @@ backup_this_script()
 6   then
 7     cp $CONFIG ${TMPDIR}/
 8   fi
 9-
10+  export GPG_TTY=`tty`
11   gpg -a --export-secret-keys ${GPG_KEY} > ${TMPDIR}/duplicity-backup-secret.key.txt
12   echo -e ${README_TXT} > ${README}
13   echo "Encrypting tarball, choose a password you'll remember..."