simplify fetch-bundles script

This commit is contained in:
vyzo 2022-04-12 10:18:52 +03:00
parent 93f1fac76b
commit 0ac8708396

View File

@ -20,12 +20,7 @@ check() {
file=$1 file=$1
hash=$2 hash=$2
if [ -e "$file" ]; then if [ -e "$file" ]; then
file_hash=$(sha256sum "$file" | cut -d ' ' -f 1) echo "$hash $file" | sha256sum --check
if [ "$file_hash" == "$hash" ]; then
return 0
else
return 1
fi
else else
return 1 return 1
fi fi