Parcourir la source

Use first part of returned value

Bob Mottram il y a 10 ans
Parent
révision
23a4809be4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/freedombone

+ 1
- 1
src/freedombone Voir le fichier

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