diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 03:49:27 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 03:49:27 +0200 |
commit | 28717aded7df4ac4842fa308e67c1c15e1de4ffa (patch) | |
tree | 64a93db7a952dabf5c2af3b7776bdcf0d050e181 /bin/ak-get-gpg-fingerprint | |
parent | abdfe0a5c2a86f19aafe12ae70663ddcf83a6e39 (diff) | |
download | arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.tar.gz arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.tar.bz2 arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.zip |
Introduced and applied _ak_gpg library
Diffstat (limited to 'bin/ak-get-gpg-fingerprint')
-rwxr-xr-x | bin/ak-get-gpg-fingerprint | 7 |
1 files changed, 4 insertions, 3 deletions
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 |