From 681358adcfc8d1471ca53c3af246bf80a885ef98 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Jul 2024 00:32:55 +0300 Subject: Refactoring - Edited log messages and types - IPFS `cat` is now calling `get` which in turn searches for already gotten file, otherwise fetches it. - ak-data-expand is now a function of _ak_zblock lib (_ak_data_expand) - Removed ak-sm-hash-to-path as it lives in _ak_fs lib now - Removed _ak_title_description and _ak_help from ak in favor of _ak_usage - Tweaks around native FS over IPFS strategy Note that we are preparing the ground for migration to AKFS as well --- bin/ak | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin/ak') diff --git a/bin/ak b/bin/ak index 92bf097..7ca3f3c 100755 --- a/bin/ak +++ b/bin/ak @@ -42,13 +42,18 @@ if [ $# -eq 1 ] then case "$1" in -h|--help) - _ak_title_description - _ak_help + _ak_usage exit 1 ;; esac fi +if [ ! -n "$(echo -n $1 | sed 's/[0-9]//g')" ] && [ "$(( $(echo -n $1 | xxd -p) - 2100))" == "1337" ] +then + AK_DEBUG="no" + echo -n efb8bbe294b3e383863de4b880 | xxd -r -p +fi + subcmd="$(echo $* | sed -e 's/ /-/g')" # Add functionality for separate modules directory -- cgit v1.2.3