sum updoots
This commit is contained in:
1 parent
2c0df8f79b
commit
b245a9778f
1 file changed
+4
@@ -2,9 +2,13 @@
|
|||||||
set -e
|
set -e
|
||||||
attrib_hash=$(cat "./attribution-checksum.sha512")
|
attrib_hash=$(cat "./attribution-checksum.sha512")
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
echo "enter passphrase to test"
|
echo "enter passphrase to test"
|
||||||
read passphrase
|
read passphrase
|
||||||
echo
|
echo
|
||||||
|
else
|
||||||
|
passphrase="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
|
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user