From 6fb9ffefdd9cc64c08cf7627efd8a87a894b0419 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 12 Jul 2015 16:02:39 +0100 Subject: download/grub: verify checksums of downloaded files --- resources/scripts/helpers/download/grub | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'resources/scripts/helpers/download/grub') diff --git a/resources/scripts/helpers/download/grub b/resources/scripts/helpers/download/grub index 45414dc1..8349d93b 100755 --- a/resources/scripts/helpers/download/grub +++ b/resources/scripts/helpers/download/grub @@ -47,6 +47,13 @@ cd "grub/" git reset --hard afd0f21b2027310fda52b00ac1b964041d39a363 +# Verify checksums of the downloaded files +# ------------------------------------------------------------------------------ + +sha512sum -c "../resources/scripts/helpers/sha512sums/grub" || (cd "../" && rm -Rf "grub/" && printf "Invalid checksums for GRUB\n" && exit 1) + +printf "Valid checksums for GRUB\n" + # Apply patches # ------------------------------------------------------------------------------ -- cgit v1.2.3-70-g09d2