From d72a6055428e399d710e99c689f8ff4067ae9ef5 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 11 Aug 2023 22:37:07 +0300 Subject: [PATCH] Why the hell I still used SHA? --- bin/bin/{mv-sha => mv-hsh} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename bin/bin/{mv-sha => mv-hsh} (70%) diff --git a/bin/bin/mv-sha b/bin/bin/mv-hsh similarity index 70% rename from bin/bin/mv-sha rename to bin/bin/mv-hsh index bf5cc5c..fe7ee92 100755 --- a/bin/bin/mv-sha +++ b/bin/bin/mv-hsh @@ -2,5 +2,5 @@ [ $# -eq 0 ] && fs="$(find . -maxdepth 1 -type f)" || fs="$@" for f in $fs ; do - mv -v "$f" $(sha1 -q "$f").${f##*.} + mv -v "$f" $(b3sum < "$f").${f##*.} done -- 2.44.0