From 89d00fcbc75e128cba516009db100daec4b794a9 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 28 Dec 2024 15:59:04 +0200 Subject: refactoring --- lib/_ak_node | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/_ak_node') 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}' } -- cgit v1.2.3