mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-10 10:34:54 +02:00
Updated install-powershell.ps1
This commit is contained in:
parent
a4fa175203
commit
5febddcaf5
@ -378,7 +378,7 @@ try {
|
|||||||
} elseif ($IsMacOSEnv) {
|
} elseif ($IsMacOSEnv) {
|
||||||
$packageName = "powershell-${release}-osx-${architecture}.tar.gz"
|
$packageName = "powershell-${release}-osx-${architecture}.tar.gz"
|
||||||
}
|
}
|
||||||
Write-Host " Latest release is $release for $architecture, package name is: $packageName"
|
Write-Host " Latest release is $release for $architecture (package name: $packageName)"
|
||||||
|
|
||||||
$downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}"
|
$downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}"
|
||||||
Write-Host "⏳ (2/5) Loading $downloadURL"
|
Write-Host "⏳ (2/5) Loading $downloadURL"
|
||||||
@ -424,8 +424,8 @@ try {
|
|||||||
Expand-ArchiveInternal -Path $packagePath -DestinationPath $contentPath
|
Expand-ArchiveInternal -Path $packagePath -DestinationPath $contentPath
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Write-Host "⏳ (3/5) Extracting package to $contentPath..."
|
Write-Host "⏳ (3/5) Extracting to $contentPath..."
|
||||||
tar zxf $packagePath -C $contentPath
|
& tar zxf $packagePath -C $contentPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user