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