diff options
author | Simo Fält <simo.falt@qt.io> | 2017-09-05 07:37:04 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2017-09-05 11:36:43 +0000 |
commit | c48355ebb58cb058df5b2ca519b6b89fbd09f380 (patch) | |
tree | 7bdaed5407aeda83ea785b3ace7310a0e9fb1f25 /coin | |
parent | a7b1b0035075b3a44e9e8e3801edf896501f6511 (diff) |
Provisioning: Fix DownloadURL utility's shasum check
MacOS 10.10 has older shasum tool, which does not support oneliner
verification.
Change-Id: If00b846d5772aa1991960675d022249d63e7bd77
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/provisioning/common/DownloadURL.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coin/provisioning/common/DownloadURL.sh b/coin/provisioning/common/DownloadURL.sh index 305f2675..a663b602 100644 --- a/coin/provisioning/common/DownloadURL.sh +++ b/coin/provisioning/common/DownloadURL.sh @@ -70,7 +70,8 @@ function DownloadURL { esac } echo "Checking SHA1 on PKG '$targetFile'" - echo "$expectedSha1 *$targetFile" | shasum --check || throw $ExceptionSHA1 + echo "$expectedSha1 *$targetFile" > $targetFile.sha1 + /usr/bin/shasum --check $targetFile.sha1 || throw $ExceptionSHA1 ) catch || { |