Skip to content

Conversation

dennisameling
Copy link
Contributor

Starting with version 7.4.3 of PowerShell, Windows arm64 MSIs are added to the releases, so we no longer need to hardcode the preview version.

Also, during local testing, I forgot to run PowerShell as administrator and the installation of pwsh silently failed. Let's prevent the script from starting if we're not an admin. This is mostly a nice to have for local testing, since the post-deployment script on the self-hosted runner always runs as admin.

…available

Starting with version 7.4.3 of PowerShell, Windows arm64 MSIs are added to the releases, so we no longer need to hardcode the preview version.

Ref: https://github.com/PowerShell/PowerShell/releases/tag/v7.4.3
Signed-off-by: Dennis Ameling <[email protected]>
During local testing, I forgot to run PowerShell as administrator and the installation of `pwsh` silently failed. Let's prevent the script from starting if we're not an admin.

Ref: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_requires?view=powershell-7.4#-runasadministrator
Signed-off-by: Dennis Ameling <[email protected]>
@dscho dscho merged commit 8daf046 into main Sep 15, 2024
6 checks passed
@dscho dscho deleted the update-pwsh-self-hosted branch September 15, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants