From ef5d5bf15910fc5bfe02df2afe9861691a9e4e32 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 12 Jul 2015 17:15:18 +0100 Subject: download/bucts: Verify checksums of downloaded files --- resources/scripts/helpers/download/bucts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'resources/scripts/helpers/download/bucts') diff --git a/resources/scripts/helpers/download/bucts b/resources/scripts/helpers/download/bucts index 94489656..9b277f2a 100755 --- a/resources/scripts/helpers/download/bucts +++ b/resources/scripts/helpers/download/bucts @@ -47,6 +47,17 @@ cd "bucts/" printf "Patching bucts to not require git for building\n" git reset --hard dc27919d7a66a6e8685ce07c71aefa4f03ef7c07 + +# Verify checksums of the downloaded files +# ------------------------------------------------------------------------------ + +sha512sum -c "../resources/scripts/helpers/sha512sums/bucts" || (cd "../" && rm -Rf "bucts/" && printf "Invalid checksums for bucts\n" && exit 1) + +printf "Valid checksums for bucts\n" + +# Apply patches +# ------------------------------------------------------------------------------ + git am "../resources/bucts/patch/0001-Makefile-don-t-use-git.patch" # we're done -- cgit v1.2.3-70-g09d2