Merge branch 'tar-checksum' into 'master'

Add tar checksum support (SHA-256)

See merge request redox-os/cookbook!195
This commit is contained in:
Jeremy Soller 2018-12-21 20:17:39 +00:00
commit 23d4711f9a

View File

@ -85,6 +85,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