summaryrefslogtreecommitdiff
path: root/yarns/obnam.sh
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/obnam.sh')
-rw-r--r--yarns/obnam.sh5
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 }'
}