From ebe175a3b3cec6c0653d50f787d491768c4b8f16 Mon Sep 17 00:00:00 2001 From: Julek <31626592+dnjulek@users.noreply.github.com> Date: Fri, 2 Feb 2024 23:18:25 -0300 Subject: [PATCH] move ProgressPreference to the right place --- powershell/RunWithBAT.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell/RunWithBAT.ps1 b/powershell/RunWithBAT.ps1 index 6520a0e..f85f4a2 100644 --- a/powershell/RunWithBAT.ps1 +++ b/powershell/RunWithBAT.ps1 @@ -13,12 +13,12 @@ $destinationFilePath = Join-Path $destinationFileFolder "\ssimulacra2.dll" if (-not (Test-Path $zipFilePath)){ Write-Host "Downloading zig-windows-x86_64-$version.zip..." -ForegroundColor Green + $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri $zipUrl -OutFile $zipFilePath } if (-not (Test-Path $zigPath)){ Write-Host "Extracting zig-windows-x86_64-$version.zip..." -ForegroundColor Green - $ProgressPreference = 'SilentlyContinue' Expand-Archive -Path $zipFilePath -DestinationPath $PSScriptRoot -Force }