Use first part of returned value
This commit is contained in:
parent
f16595ee83
commit
23a4809be4
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue