aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-akid-get-ipfs-hash
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-akid-get-ipfs-hash')
-rwxr-xr-xbin/ak-akid-get-ipfs-hash5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ak-akid-get-ipfs-hash b/bin/ak-akid-get-ipfs-hash
new file mode 100755
index 0000000..996a34f
--- /dev/null
+++ b/bin/ak-akid-get-ipfs-hash
@@ -0,0 +1,5 @@
+#!/bin/bash
+# Resolves the IPNS key "ak-config" to its current IPFS value
+# Return IPFS CIDv0 without /ipfs/ prefix
+ak-ipfs-name-resolve /ipns/$(ak-akid-get-ipns-key) | sed -e 's/\/ipfs\///'
+