From 2d10a049020b844bdfb9bbc62063bc4b07521536 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 12 Feb 2024 16:21:05 +0200 Subject: Bettering the mask for SHA512 strings --- bin/ak-sm-merkle-tree-to-file | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ak-sm-merkle-tree-to-file') 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" -- cgit v1.2.3