check libsodium sha256 checksum
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -29,6 +29,18 @@ if [ ! -f libsodium-1.0.18.tar.gz ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Sha256 checksum for ibsodium-1.0.18.tar.gz
|
||||
EXPECTED_CHECKSUM="6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1"
|
||||
|
||||
# Check if the checksum matchs
|
||||
echo "Checking SHA256 Checksum for libsodium $VERSION"
|
||||
ACTUAL_CHECKSUM=$(sha256sum libsodium-1.0.18.tar.gz | awk '{ print $1 }')
|
||||
|
||||
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then
|
||||
echo "Error: The checksum of libsodium does not match the expected checksum. "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d libsodium-1.0.18 ]; then
|
||||
echo "Unpacking libsodium $VERSION"
|
||||
tar xf libsodium-1.0.18.tar.gz
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user