mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-12 00:48:17 +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)
|
$Destination = $PSCmdlet.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Destination)
|
||||||
|
|
||||||
if (-not $UseMSI) {
|
if (-not $UseMSI) {
|
||||||
Write-Verbose "Destination: $Destination" -Verbose
|
Write-Host "Installation destination path: $Destination"
|
||||||
} else {
|
} else {
|
||||||
if (-not $IsWinEnv) {
|
if (-not $IsWinEnv) {
|
||||||
throw "-UseMSI is only supported on Windows"
|
throw "-UseMSI is only supported on Windows"
|
||||||
@ -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 from: $downloadURL"
|
Write-Host "Downloading: $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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user