diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-05 00:32:55 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-05 00:32:55 +0300 |
commit | 681358adcfc8d1471ca53c3af246bf80a885ef98 (patch) | |
tree | 1b339d01f5ed5bee99c5c1be4403a6d23b7c05c4 /bin/ak | |
parent | c0dbfc8dc7cf7af278de1d233d87ffbe481ba704 (diff) | |
download | arching-kaos-tools-681358adcfc8d1471ca53c3af246bf80a885ef98.tar.gz arching-kaos-tools-681358adcfc8d1471ca53c3af246bf80a885ef98.tar.bz2 arching-kaos-tools-681358adcfc8d1471ca53c3af246bf80a885ef98.zip |
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
Diffstat (limited to 'bin/ak')
-rwxr-xr-x | bin/ak | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |