using better suited output suppression

This commit is contained in:
Baipyrus 2024-08-27 16:33:27 +02:00
parent c5b4a2de9f
commit 32d0291a09

View File

@ -78,14 +78,14 @@ function ProcessUrlFiles
if ($destinationDir -and (-not (Test-Path $destinationDir))) if ($destinationDir -and (-not (Test-Path $destinationDir)))
{ {
Write-Host "Creating destination directory $destinationDir..." -ForegroundColor Cyan 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 # Create temporary directory for curl
$appname = $sourceDir.Split('\')[-1] $appname = $sourceDir.Split('\')[-1]
$tmpApp = "$env:TMP\$appname-config" $tmpApp = "$env:TMP\$appname-config"
if (-not (Test-Path $tmpApp)) 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 # Find all .url files in the source directory