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>
This commit is contained in:
Simo Fält
2017-09-05 07:37:04 +03:00
parent a7b1b00350
commit c48355ebb5

View File

@@ -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 || {