aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-02-12 16:21:05 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-02-12 16:21:05 +0200
commit2d10a049020b844bdfb9bbc62063bc4b07521536 (patch)
tree633d20c50cf9b30b27e61d5bf584dfde97a1fe60
parent1111b62d12a1df9cbfcc480e3e21e7be554c116d (diff)
downloadarching-kaos-tools-2d10a049020b844bdfb9bbc62063bc4b07521536.tar.gz
arching-kaos-tools-2d10a049020b844bdfb9bbc62063bc4b07521536.tar.bz2
arching-kaos-tools-2d10a049020b844bdfb9bbc62063bc4b07521536.zip
Bettering the mask for SHA512 strings
-rwxr-xr-xbin/ak-sm-merkle-tree-to-file3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ak-sm-merkle-tree-to-file b/bin/ak-sm-merkle-tree-to-file
index 2dd9a43..5959250 100755
--- a/bin/ak-sm-merkle-tree-to-file
+++ b/bin/ak-sm-merkle-tree-to-file
@@ -10,7 +10,8 @@ then
echo "Please an output filename"
exit 2
fi
-echo $1 | grep ".\{128\}"
+
+echo $1 | grep "[0123456789abcdef]\{128\}"
if [ $? -ne 0 ]
then
echo "Look, I asked for a SHA512 hash, please try again"