aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_node
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_ak_node')
-rwxr-xr-xlib/_ak_node4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_ak_node b/lib/_ak_node
index 1cc009a..04aa07b 100755
--- a/lib/_ak_node
+++ b/lib/_ak_node
@@ -21,12 +21,12 @@ 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(){
+function _ak_node_info_ipfs_hash(){
_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(){
+function _ak_node_info_ipns_key(){
_ak_ipfs_key_list_full | grep ak-config | awk '{print $1}'
}