aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-akid-get-ipfs-hash
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-12-12 12:29:03 +0200
committerkaotisk <kaotisk@arching-kaos.org>2023-12-12 12:29:03 +0200
commit296074f6f5f45c8ab55b44309f9991dca8ef13da (patch)
tree313289ef64621d0a47c2d0caca491f6f7d0ce65c /bin/ak-akid-get-ipfs-hash
parenta89cb5df04211968a4884b371b5810a708ce8fcf (diff)
downloadarching-kaos-tools-296074f6f5f45c8ab55b44309f9991dca8ef13da.tar.gz
arching-kaos-tools-296074f6f5f45c8ab55b44309f9991dca8ef13da.tar.bz2
arching-kaos-tools-296074f6f5f45c8ab55b44309f9991dca8ef13da.zip
Renamed scripts for convenience
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\///'
+