From 28717aded7df4ac4842fa308e67c1c15e1de4ffa Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 03:49:27 +0200 Subject: Introduced and applied _ak_gpg library --- bin/ak-get-gpg-fingerprint | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/ak-get-gpg-fingerprint') diff --git a/bin/ak-get-gpg-fingerprint b/bin/ak-get-gpg-fingerprint index 34bc4e8..84025e5 100755 --- a/bin/ak-get-gpg-fingerprint +++ b/bin/ak-get-gpg-fingerprint @@ -1,10 +1,11 @@ #!/bin/bash +source $AK_LIBDIR/_ak_gpg + if [ -z $1 ] then - gpg2 --fingerprint $(ak-ipfs-cat $(ak-get-gpg) | gpg2 --import 2>&1 | head -n 1 | cut -d ' ' -f 3 | sed 's/://') | head -n 2 | tail -n 1 | sed 's/ //g' + _ak_gpg_key_self_get_fingerprint elif [ -n "$1" ] then - gpg2 --fingerprint $(ak-ipfs-cat "$1" | gpg2 --import 2>&1 | head -n 1 | cut -d ' ' -f 3 | sed 's/://') | head -n 2 | tail -n 1 | sed 's/ //g' - + _ak_gpg_key_get_fingerprint_from_ipfs $1 fi -- cgit v1.2.3