diff --git a/cook.sh b/cook.sh index de9720e48df80874aa391925f7630005a19df799..8a086d66d2ee745d4b2760b3af2bc786b94d961a 100755 --- a/cook.sh +++ b/cook.sh @@ -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