mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 22:27:34 +00:00
Parse only untranslated GNUPG output
this avoids getting in the way utf8 chars like non-breakable space that will hang ZSh in versions previous to 5.0.8, fix #205
This commit is contained in:
parent
eada0538c9
commit
55d3263cac
4
tomb
4
tomb
@ -924,11 +924,11 @@ gpg_decrypt() {
|
|||||||
|
|
||||||
} || { # using status-file in gpg != 1.4.11
|
} || { # using status-file in gpg != 1.4.11
|
||||||
|
|
||||||
# TODO: use mkfifo
|
|
||||||
TOMBSECRET=`print - "$gpgpass" | \
|
TOMBSECRET=`print - "$gpgpass" | \
|
||||||
gpg --batch --passphrase-fd 0 --no-tty --no-options \
|
gpg --batch --passphrase-fd 0 --no-tty --no-options \
|
||||||
--status-fd 2 --no-mdc-warning --no-permission-warning \
|
--status-fd 2 --no-mdc-warning --no-permission-warning \
|
||||||
--no-secmem-warning` 2>&1 | read -r -d'\n' gpgstatus
|
--no-secmem-warning` |& grep GNUPG: \
|
||||||
|
| read -r -d'\n' gpgstatus
|
||||||
|
|
||||||
unset gpgpass
|
unset gpgpass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user