From 23a4809be404f82bb35d93604b088134549b97f0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Jun 2015 19:31:41 +0100 Subject: [PATCH] Use first part of returned value --- src/freedombone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index 99bba613..ecb68d09 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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."