From 9086cec091c36fedae8b239de1fd8ceefd9c83df Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 11 Dec 2024 17:07:41 +0200 Subject: Roll back into sane stuff --- lib/_ak_fs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/_ak_fs') 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(){ -- cgit v1.2.3