aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-11 17:07:41 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-11 17:07:41 +0200
commit9086cec091c36fedae8b239de1fd8ceefd9c83df (patch)
tree0b750204f339ea80554dd87a4eb7b5f1b134a60b
parent05628b2c3e720aee60e0b3670c691b9a48f4c1ac (diff)
downloadarching-kaos-tools-9086cec091c36fedae8b239de1fd8ceefd9c83df.tar.gz
arching-kaos-tools-9086cec091c36fedae8b239de1fd8ceefd9c83df.tar.bz2
arching-kaos-tools-9086cec091c36fedae8b239de1fd8ceefd9c83df.zip
Roll back into sane stuff
-rwxr-xr-xlib/_ak_fs10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index 510bd12..b65f34c 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -3,13 +3,15 @@
source $AK_LIBDIR/_ak_log
_ak_fs_return_hash_path(){
- hashpath="$(echo -n "$1" |sed 's/./&\//g;s/\/$//g')"
- echo -n "$hashpath"
+ #hashpath="$(echo -n "$1" |sed 's/./&\//g;s/\/$//g')"
+ #hashpath="$(echo -n "$1" | fold -w 4 | tr $'\n' '/')"
+ echo -n "$1"
}
_ak_fs_return_hash_dir(){
- hashdir="$(echo -n "$1" | sed -e 's/./&\//g' | grep '\(./\)\{128\}' | sed -e 's/..$//')"
- echo -n "$hashdir"
+ #hashdir="$(_ak_fs_return_hash_path $1 | sed -e 's/.....$//')"
+ #echo -n "$hashdir"
+ echo -n "$1"
}
_ak_fs_verify_input_is_hash(){