diff options
author | Clément Lassieur <clement@lassieur.org> | 2018-02-24 12:16:23 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-14 16:58:28 +0200 |
commit | fd2cbdacaed23c57b03cde19fe5eb6f910420855 (patch) | |
tree | b3e23d49c9b54dbfc2e603523fe250c105cdc048 /tests/t0300-reencryption.sh | |
parent | 8732213db41e4d080651f85b0e6fcee1ebacf612 (diff) | |
download | pass-fd2cbdacaed23c57b03cde19fe5eb6f910420855.tar.gz pass-fd2cbdacaed23c57b03cde19fe5eb6f910420855.tar.bz2 pass-fd2cbdacaed23c57b03cde19fe5eb6f910420855.zip |
tests: fix compatibility with GnuPG 2.2.5
Diffstat (limited to 'tests/t0300-reencryption.sh')
-rwxr-xr-x | tests/t0300-reencryption.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0300-reencryption.sh b/tests/t0300-reencryption.sh index 6d5811d..6d15364 100755 --- a/tests/t0300-reencryption.sh +++ b/tests/t0300-reencryption.sh @@ -10,7 +10,7 @@ canonicalize_gpg_keys() { $GPG --list-keys --with-colons "$@" | sed -n 's/sub:[^:]*:[^:]*:[^:]*:\([^:]*\):[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[a-zA-Z]*e[a-zA-Z]*:.*/\1/p' | LC_ALL=C sort -u } gpg_keys_from_encrypted_file() { - $GPG -v --no-secmem-warning --no-permission-warning --decrypt --list-only --keyid-format long "$1" 2>&1 | cut -d ' ' -f 5 | LC_ALL=C sort -u + $GPG -v --no-secmem-warning --no-permission-warning --decrypt --list-only --keyid-format long "$1" 2>&1 | grep "public key is" | cut -d ' ' -f 5 | LC_ALL=C sort -u } gpg_keys_from_group() { local output="$($GPG --list-config --with-colons | sed -n "s/^cfg:group:$1:\\(.*\\)/\\1/p" | head -n 1)" |