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