Add tar checksum support (SHA-256)

This commit is contained in:
Tibor Nagy 2018-12-12 01:57:02 +01:00
parent e1b87665d7
commit c8ccdf4615

View File

@ -84,6 +84,11 @@ function op {
wget "$TAR" -O source.tar
fi
if [ -n "$TAR_SHA256" ]
then
sha256sum -c <<< "${TAR_SHA256} source.tar"
fi
if [ ! -d source ]
then
mkdir source