summaryrefslogtreecommitdiffstats
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-07-12 10:40:07 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-07-12 10:40:07 (EDT)
commitaaab9127058293da378b2639a9907a1d83326514 (patch)
treefdca3e417cb73f841def729f024b85733d3effbd /resources/scripts
parentbda8d94f379657469fac2dfe78e01d09b06da137 (diff)
downloadlibreboot-aaab9127058293da378b2639a9907a1d83326514.zip
libreboot-aaab9127058293da378b2639a9907a1d83326514.tar.gz
libreboot-aaab9127058293da378b2639a9907a1d83326514.tar.bz2
download/memtest86plus: delete tarball if invalid
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/helpers/download/memtest86plus1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/scripts/helpers/download/memtest86plus b/resources/scripts/helpers/download/memtest86plus
index e3ba917..7d231b9 100755
--- a/resources/scripts/helpers/download/memtest86plus
+++ b/resources/scripts/helpers/download/memtest86plus
@@ -43,6 +43,7 @@ wget http://www.memtest.org/download/5.01/memtest86+-5.01.tar.gz
if [ "$(sha512sum memtest86+-5.01.tar.gz | cut -c1-128)" = "d872db35ef733ec8f49094251f2bf6b98cc80eb06d04044be3aecf28d534f24ba293a08b9979b112dbd07cf27368148939a33a32c7010fc9581a3a5b150c94d7" ]; then
printf "Valid checksum for memtest86plus\n"
else
+ rm -f "memtest86+-5.01.tar.gz"
printf "Invalid checksum for memtest86plus\n"
exit 1
fi