Provisioning: Fix DownloadURL utility's shasum check
[mirror/qt/qt5.git] / coin / provisioning / common / DownloadURL.sh
index 305f267..a663b60 100644 (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 || {