1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-03-24 04:38:18 +01:00

Update install-powershell.ps1

This commit is contained in:
Markus Fleschutz 2023-04-17 20:40:27 +02:00
parent f683a2226e
commit 1acc1dae89

View File

@ -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") {