Provisioning: Fix shasum path

Commit c48355ebb5 changed
the path of shasum, which was not intended. While the
DownloadURL.sh utility is used by rhel in addition to
macOS we can't rely on /usr/bin/shasum but we have to
use the one found from PATH.

Change-Id: I67bb37dcb72ba3d8d1f279646e44228b27137ec9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Simo Fält
2017-09-07 12:07:25 +03:00
parent c48355ebb5
commit 92d1bdcb43

View File

@@ -71,7 +71,7 @@ function DownloadURL {
}
echo "Checking SHA1 on PKG '$targetFile'"
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
/usr/bin/shasum --check $targetFile.sha1 || throw $ExceptionSHA1
shasum --check $targetFile.sha1 || throw $ExceptionSHA1
)
catch || {