mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-05 10:02:21 +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}"
|
$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
|
$packagePath = Join-Path -Path $tempDir -ChildPath $packageName
|
||||||
if (!$PSVersionTable.ContainsKey('PSEdition') -or $PSVersionTable.PSEdition -eq "Desktop") {
|
if (!$PSVersionTable.ContainsKey('PSEdition') -or $PSVersionTable.PSEdition -eq "Desktop") {
|
||||||
@ -508,7 +508,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not $UseMSI) {
|
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) {
|
if ($Destination -eq $PSHOME) {
|
||||||
Write-Host "Please restart pwsh" -ForegroundColor Magenta
|
Write-Host "Please restart pwsh" -ForegroundColor Magenta
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user