diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-10-01 16:36:56 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-10-01 16:36:56 +0000 |
commit | a77765d09838099dbbb9cfc971765f377dad6577 (patch) | |
tree | b38b28f82014403f9f10e5c52c273e7464752620 /yarns/obnam.sh | |
parent | e5c1d2d291394303b5c4b4190db4bcaea8576e20 (diff) | |
download | obnam-a77765d09838099dbbb9cfc971765f377dad6577.tar.gz |
Fix "user no longer has key" scenario step
This used to assume things of gpg's output, which break when gpg
becomes version 2.1.something. This changed version of the step should
hopefully work with either version of gpg.
Diffstat (limited to 'yarns/obnam.sh')
-rw-r--r-- | yarns/obnam.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh index b567eea4..201ffc3c 100644 --- a/yarns/obnam.sh +++ b/yarns/obnam.sh @@ -183,9 +183,8 @@ manifest() get_fingerprint() { - gpg --fingerprint "$1" | - sed -n '/^ *Key fingerprint = /s///p' | - sed 's/ *//g' + gpg --fingerprint --with-colons "$1" | + awk -F: '/^fpr:/ { print $10; exit }' } |