File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
azure-self-hosted-runners Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,7 @@ catch {
119
119
# It contains a bunch of new features compared to "powershell" and is sometimes more stable as well.
120
120
#
121
121
# url for Github API to get the latest release of pwsh
122
- #
123
- # TODO update this to /releases/latest once 7.5.0 is out, as it adds support for arm64 MSIs
124
- [string ]$PwshUrl = " https://api.github.com/repos/PowerShell/PowerShell/releases/tags/v7.5.0-preview.2"
122
+ [string ]$PwshUrl = " https://api.github.com/repos/PowerShell/PowerShell/releases/latest"
125
123
126
124
# Name of the MSI file that should be verified and downloaded
127
125
[string ]$PwshMsiName = " PowerShell-.*-win-arm64.msi"
@@ -238,10 +236,6 @@ $MsiArguments = "/qn /i `"$MsiPath`" ADD_PATH=1"
238
236
# Install pwsh using msiexec
239
237
Start-Process msiexec.exe - Wait - ArgumentList $MsiArguments
240
238
241
- # TODO remove once 7.5.0 is out
242
- Write-Output " Copying pwsh-preview.cmd to pwsh.cmd as a temporary measure until 7.5.0 is out..."
243
- Copy-Item " C:\Program Files\PowerShell\7-preview\preview\pwsh-preview.cmd" " C:\Program Files\PowerShell\7-preview\preview\pwsh.cmd"
244
-
245
239
Write-Output " Finished installing pwsh."
246
240
247
241
# ======================
You can’t perform that action at this time.
0 commit comments