aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-akid-get-ipfs-hash (renamed from bin/ak-get-akid)2
-rwxr-xr-xbin/ak-akid-get-ipns-key5
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/ak-get-akid b/bin/ak-akid-get-ipfs-hash
index 61bc563..996a34f 100755
--- a/bin/ak-get-akid
+++ b/bin/ak-akid-get-ipfs-hash
@@ -1,5 +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-ipfs-key-list-full | grep ak-config | awk '{print $1}') | sed -e 's/\/ipfs\///'
+ak-ipfs-name-resolve /ipns/$(ak-akid-get-ipns-key) | sed -e 's/\/ipfs\///'
diff --git a/bin/ak-akid-get-ipns-key b/bin/ak-akid-get-ipns-key
new file mode 100755
index 0000000..6db3705
--- /dev/null
+++ b/bin/ak-akid-get-ipns-key
@@ -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-key-list-full | grep ak-config | awk '{print $1}'
+