aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-get-gpg-fingerprint
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-get-gpg-fingerprint')
-rwxr-xr-xbin/ak-get-gpg-fingerprint10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/ak-get-gpg-fingerprint b/bin/ak-get-gpg-fingerprint
new file mode 100755
index 0000000..34bc4e8
--- /dev/null
+++ b/bin/ak-get-gpg-fingerprint
@@ -0,0 +1,10 @@
+#!/bin/bash
+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'
+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'
+
+fi
+