mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-11 16:39:10 +01:00
Update install-powershell.ps1
This commit is contained in:
parent
be62945ec8
commit
e845c67441
@ -74,7 +74,7 @@ if (-not $Destination) {
|
||||
$Destination = $PSCmdlet.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Destination)
|
||||
|
||||
if (-not $UseMSI) {
|
||||
Write-Verbose "Destination: $Destination" -Verbose
|
||||
Write-Host "Installation destination path: $Destination"
|
||||
} else {
|
||||
if (-not $IsWinEnv) {
|
||||
throw "-UseMSI is only supported on Windows"
|
||||
@ -381,7 +381,7 @@ try {
|
||||
}
|
||||
|
||||
$downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}"
|
||||
Write-Host "Downloading from: $downloadURL"
|
||||
Write-Host "Downloading: $downloadURL"
|
||||
|
||||
$packagePath = Join-Path -Path $tempDir -ChildPath $packageName
|
||||
if (!$PSVersionTable.ContainsKey('PSEdition') -or $PSVersionTable.PSEdition -eq "Desktop") {
|
||||
|
Loading…
Reference in New Issue
Block a user