From 0ac8708396870f02a295f162454990ace69a04e9 Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 12 Apr 2022 10:18:52 +0300 Subject: [PATCH] simplify fetch-bundles script --- build/builtin-actors/fetch-bundles.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build/builtin-actors/fetch-bundles.sh b/build/builtin-actors/fetch-bundles.sh index 49231cd4a..e36bd84bb 100755 --- a/build/builtin-actors/fetch-bundles.sh +++ b/build/builtin-actors/fetch-bundles.sh @@ -20,12 +20,7 @@ check() { file=$1 hash=$2 if [ -e "$file" ]; then - file_hash=$(sha256sum "$file" | cut -d ' ' -f 1) - if [ "$file_hash" == "$hash" ]; then - return 0 - else - return 1 - fi + echo "$hash $file" | sha256sum --check else return 1 fi