simplify fetch-bundles script

This commit is contained in:
vyzo
2022-04-14 19:33:24 +03:00
parent 93f1fac76b
commit 0ac8708396
+1 -6
View File
@@ -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