From b8211774d91aa64e1dcfab7c53135f45c2702878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tony=20Saraj=C3=A4rvi?= Date: Mon, 10 Apr 2017 07:58:49 +0300 Subject: [PATCH] Fix provision help script DownloadURL.sh The script neglected the result of the sha1 after download. Even with a failure it exited nicely. Change-Id: I6c0e25c2b764a0ad54acbe317eddf395a56d7f1c Reviewed-by: Heikki Halmet --- coin/provisioning/common/DownloadURL.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coin/provisioning/common/DownloadURL.sh b/coin/provisioning/common/DownloadURL.sh index 9bf7fdb7..305f2675 100644 --- a/coin/provisioning/common/DownloadURL.sh +++ b/coin/provisioning/common/DownloadURL.sh @@ -79,6 +79,10 @@ function DownloadURL { echo "Failed downloading PKG from primary and alternative URLs" exit 1; ;; + $ExceptionSHA1) + echo "Failed checksum on $targetFile." + exit 1; + ;; esac } }