]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Why the hell I still used SHA?
authorSergey Matveev <stargrave@stargrave.org>
Fri, 11 Aug 2023 19:37:07 +0000 (22:37 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 11 Aug 2023 19:37:07 +0000 (22:37 +0300)
bin/bin/mv-hsh [moved from bin/bin/mv-sha with 70% similarity]

similarity index 70%
rename from bin/bin/mv-sha
rename to bin/bin/mv-hsh
index bf5cc5c2373bdcc87a076a8622b892a24816eafa..fe7ee9259ea708f261a38f872b4fb1cf638a08e4 100755 (executable)
@@ -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