mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-11-14 23:23:50 +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)))
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user