From 1acc1dae894efcfce5ab541ed95d1bc39c6db083 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 17 Apr 2023 20:40:27 +0200 Subject: [PATCH] Update install-powershell.ps1 --- Scripts/install-powershell.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/install-powershell.ps1 b/Scripts/install-powershell.ps1 index 173c9abf..b8274567 100644 --- a/Scripts/install-powershell.ps1 +++ b/Scripts/install-powershell.ps1 @@ -116,7 +116,7 @@ function Remove-Destination([string] $Destination) { if ($DoNotOverwrite) { throw "Destination folder '$Destination' already exist. Use a different path or omit '-DoNotOverwrite' to overwrite." } - Write-Verbose "Removing old installation: $Destination" -Verbose + Write-Host "Removing old installation at: $Destination" if (Test-Path -Path "$Destination.old") { Remove-Item "$Destination.old" -Recurse -Force } @@ -381,7 +381,7 @@ try { } $downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}" - Write-Verbose "About to download package from '$downloadURL'" -Verbose + Write-Host "Downloading PowerShell package from: $downloadURL" $packagePath = Join-Path -Path $tempDir -ChildPath $packageName if (!$PSVersionTable.ContainsKey('PSEdition') -or $PSVersionTable.PSEdition -eq "Desktop") {