aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zchain
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-zchain')
-rwxr-xr-xbin/ak-zchain14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/ak-zchain b/bin/ak-zchain
index 212b606..ecdb175 100755
--- a/bin/ak-zchain
+++ b/bin/ak-zchain
@@ -58,9 +58,10 @@ fullprogrampath="$(realpath $0)"
PROGRAM=$(basename $0)
descriptionString="Zchain tools"
-source $AK_LIBDIR/_ak_log
-source $AK_LIBDIR/_ak_script
-source $AK_LIBDIR/_ak_zchain
+source $AK_LIBDIR/_ak_lib_load
+_ak_lib_load _ak_log
+_ak_lib_load _ak_script
+_ak_lib_load _ak_zchain
# Flags to run
if [ ! -z $1 ]; then
@@ -76,9 +77,10 @@ if [ ! -z $1 ]; then
--crawl-self) _ak_zchain_crawl_self; exit;;
--crawl-remote-ipfs) _ak_zchain_crawl_remote_ipfs $2; exit;;
--crawl-remote-ipns) _ak_zchain_crawl_remote_ipns $2; exit;;
- --get-latest) _ak_zchain_get_latest && printf '\n'; exit;;
+ --get-latest) _ak_zchain_get_latest; exit;;
--output-types)shift; _ak_zchain_output_types $1; exit;;
- * ) _ak_usage;;
+ * ) _ak_usage err;;
esac
-else _ak_usage
+else
+ _ak_usage err
fi