From 15ce0f5c4b49fb43d91dd68b736d6410d30d59f8 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Wed, 1 Nov 2023 15:29:07 -0400 Subject: [PATCH] remove con out in Download-File --- Tools.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools.ps1 b/Tools.ps1 index e25b29a..df8fb2b 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -190,11 +190,11 @@ Function Download-File { If ( $null -eq $URI ) { Return } If ( [string]::IsNullOrEmpty($File) ) { $File = '{0}{1}' -f (Get-TempPath), (Split-Path $URL -Leaf) } If ( Test-Path $File ) { - Write-Output "Deleting existing file: ""${File}""" + #Write-Output "Deleting existing file: ""${File}""" Try { Remove-Item $File -Force } Catch { Write-Error $_.Exception.Message ; Return } } - Write-Output "Downloading ""${URI}"" to ""${File}""" + #Write-Output "Downloading ""${URI}"" to ""${File}""" Try { (New-Object System.Net.WebClient).DownloadFile($URI,$File) } Catch { Write-Error $_.Exception.Message ; Return } If ( Test-Path "${File}" ) { Return "${File}" }