aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-node-info
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 09:34:01 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 09:34:01 +0200
commit465d5db06e56dc21072a8ff01258f6815d340b00 (patch)
treeae16ecf2f980b054caa2f97f48e8fa5f22b768a6 /bin/ak-node-info
parent1cb6c8bef840a96baa37392e9833a7674f805a83 (diff)
downloadarching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.gz
arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.bz2
arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.zip
new lib _ak_ipfs
Diffstat (limited to 'bin/ak-node-info')
-rwxr-xr-xbin/ak-node-info5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ak-node-info b/bin/ak-node-info
index 73217a0..1b12798 100755
--- a/bin/ak-node-info
+++ b/bin/ak-node-info
@@ -1,15 +1,16 @@
#!/bin/bash
PROGRAM="$(basename $0)"
+source $AK_LIBDIR/_ak_ipfs
# Resolves the IPNS key "ak-config" to its current IPFS value
# Return IPFS CIDv0 without /ipfs/ prefix
_ak_node_info_ipfs_hash(){
- ak-ipfs-name-resolve /ipns/$(_ak_node_info_ipns_key) | sed -e 's/\/ipfs\///'
+ _ak_ipfs_name_resolve /ipns/$(_ak_node_info_ipns_key) | sed -e 's/\/ipfs\///'
}
# Finds ak-config ipns key
# Returns IPNS key
_ak_node_info_ipns_key(){
- ak-ipfs-key-list-full | grep ak-config | awk '{print $1}'
+ _ak_ipfs_key_list_full | grep ak-config | awk '{print $1}'
}
_ak_node_info_usage(){