Update install-powershell.ps1

This commit is contained in:
Markus Fleschutz 2023-04-17 20:43:54 +02:00
parent 1acc1dae89
commit 334c0adf63

View File

@ -381,7 +381,7 @@ try {
}
$downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}"
Write-Host "Downloading PowerShell package from: $downloadURL"
Write-Host "Downloading from: $downloadURL"
$packagePath = Join-Path -Path $tempDir -ChildPath $packageName
if (!$PSVersionTable.ContainsKey('PSEdition') -or $PSVersionTable.PSEdition -eq "Desktop") {
@ -508,7 +508,7 @@ try {
}
if (-not $UseMSI) {
Write-Host "PowerShell has been installed at $Destination" -ForegroundColor Green
Write-Host "PowerShell has been installed at: $Destination"
if ($Destination -eq $PSHOME) {
Write-Host "Please restart pwsh" -ForegroundColor Magenta
}