Use first part of returned value

This commit is contained in:
Bob Mottram 2015-06-14 19:31:41 +01:00
parent f16595ee83
commit 23a4809be4
1 changed files with 1 additions and 1 deletions

View File

@ -4774,7 +4774,7 @@ function install_onerng {
fi
# Check the hash
hash=$(sha256sum $ONERNG_PACKAGE)
hash=$(sha256sum $ONERNG_PACKAGE | awk -F ' ' '{print $1}')
if [[ $hash != $ONERNG_PACKAGE_HASH ]]; then
echo "OneRNG package: $ONERNG_PACKAGE"
echo "Hash does not match. This could indicate that the package has been tampered with."