diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-11 17:07:41 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-11 17:07:41 +0200 |
commit | 9086cec091c36fedae8b239de1fd8ceefd9c83df (patch) | |
tree | 0b750204f339ea80554dd87a4eb7b5f1b134a60b /lib/_ak_fs | |
parent | 05628b2c3e720aee60e0b3670c691b9a48f4c1ac (diff) | |
download | arching-kaos-tools-9086cec091c36fedae8b239de1fd8ceefd9c83df.tar.gz arching-kaos-tools-9086cec091c36fedae8b239de1fd8ceefd9c83df.tar.bz2 arching-kaos-tools-9086cec091c36fedae8b239de1fd8ceefd9c83df.zip |
Roll back into sane stuff
Diffstat (limited to 'lib/_ak_fs')
-rwxr-xr-x | lib/_ak_fs | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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(){ |