mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 11:21:46 +00:00
using better suited output suppression
This commit is contained in:
parent
c5b4a2de9f
commit
32d0291a09
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user