소스 검색

Use first part of returned value

Bob Mottram 10 년 전
부모
커밋
23a4809be4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/freedombone

+ 1
- 1
src/freedombone 파일 보기

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