Provisioning: Hide powershell progress bar for performance
authorTony Sarajärvi <tony.sarajarvi@qt.io>
Mon, 4 Sep 2017 09:17:45 +0000 (12:17 +0300)
committerTony Sarajärvi <tony.sarajarvi@qt.io>
Mon, 4 Sep 2017 12:12:17 +0000 (12:12 +0000)
Change-Id: I74abdcc2e7d2dccf4f85cd64fe5fb4b56e54d613
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
coin/provisioning/common/helpers.ps1

index 846f58a..b957603 100644 (file)
@@ -69,6 +69,7 @@ function Download
         [string] $CachedUrl   = $(BadParam("the locally cached URL")),
         [string] $Destination = $(BadParam("a download target location"))
     )
+    $ProgressPreference = 'SilentlyContinue'
     try {
         if ($CachedUrl.StartsWith("http")) {
             Invoke-WebRequest -UseBasicParsing $CachedUrl -OutFile $Destination