simplify fetch-bundles script
This commit is contained in:
parent
93f1fac76b
commit
0ac8708396
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user