mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-15 19:21:04 +01:00
Update install-powershell.ps1
This commit is contained in:
parent
1acc1dae89
commit
334c0adf63
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user