diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-02-12 16:21:05 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-02-12 16:21:05 +0200 |
commit | 2d10a049020b844bdfb9bbc62063bc4b07521536 (patch) | |
tree | 633d20c50cf9b30b27e61d5bf584dfde97a1fe60 | |
parent | 1111b62d12a1df9cbfcc480e3e21e7be554c116d (diff) | |
download | arching-kaos-tools-2d10a049020b844bdfb9bbc62063bc4b07521536.tar.gz arching-kaos-tools-2d10a049020b844bdfb9bbc62063bc4b07521536.tar.bz2 arching-kaos-tools-2d10a049020b844bdfb9bbc62063bc4b07521536.zip |
Bettering the mask for SHA512 strings
-rwxr-xr-x | bin/ak-sm-merkle-tree-to-file | 3 |
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" |