From 32d0291a099000d6ea805aa725efb9c2a70d8d13 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 27 Aug 2024 16:33:27 +0200 Subject: [PATCH] using better suited output suppression --- install_windows.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_windows.ps1 b/install_windows.ps1 index f7ad17d..d3946aa 100644 --- a/install_windows.ps1 +++ b/install_windows.ps1 @@ -78,14 +78,14 @@ function ProcessUrlFiles if ($destinationDir -and (-not (Test-Path $destinationDir))) { Write-Host "Creating destination directory $destinationDir..." -ForegroundColor Cyan - New-Item -ItemType Directory -Path $destinationDir 2>$null + New-Item -ItemType Directory -Path $destinationDir | Out-Null } # Create temporary directory for curl $appname = $sourceDir.Split('\')[-1] $tmpApp = "$env:TMP\$appname-config" if (-not (Test-Path $tmpApp)) - { New-Item -ItemType Directory -Path $tmpApp 2>$null + { New-Item -ItemType Directory -Path $tmpApp | Out-Null } # Find all .url files in the source directory