tParse only untranslated GNUPG output - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 55d3263cacf0509a9345855508d6422028ad52c9
DIR parent eada0538c9c3bc67c376163f470d8bca7848e42e
HTML Author: Jaromil <jaromil@dyne.org>
Date: Thu, 2 Jul 2015 12:47:29 +0200
Parse only untranslated GNUPG output
tthis avoids getting in the way utf8 chars like non-breakable space
tthat will hang ZSh in versions previous to 5.0.8, fix #205
Diffstat:
M tomb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/tomb b/tomb
t@@ -924,11 +924,11 @@ gpg_decrypt() {
} || { # using status-file in gpg != 1.4.11
- # TODO: use mkfifo
TOMBSECRET=`print - "$gpgpass" | \
gpg --batch --passphrase-fd 0 --no-tty --no-options \
--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