-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[powershell]
: Fix manual PowerShell installation binary execution permissions
#1050
Conversation
- ensure execution permissions for pwsh - correct path from /usr/local/bin/pwsh to /usr/bin/pwsh - register as shell in /etc/shells
This will avoid build failures when multiple features depend on this PowerShell package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for taking the time to contribute these changes!
Is there something blocking completion of this pull request? |
@DonPwrShellHunt Thanks for the nudge! We are waiting for the author to add test coverage validating his change as well as fix the broken test. |
[powershell]
: Fix manual PowerShell installation binary execution permissions
@samruddhikhandale would you be kind enough to review this PR and, if all is well, merge it into the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you, looks good!
This patch aligns the manual setup of
pwsh
with the settings the official Debian module uses:/usr/bin/pwsh
instead of/usr/bin/local/pwsh
/etc/shells
(usingadd-shell
)Also, because of #1041, this will also enforce execution permissions of the
/opt/microsoft/powershell/7/pwsh
binary.The package version minor version number is increased to
1.5.0
. Also, version suggestions for PowerShell installation were updated to remove deprecated version7.1
and add version7.2
,7.3
and7.4
to the selection (they can still be installed as this is only the suggestions presented to the user).Some other maintenance work:
validate_powershell_installation
test to validate generalpwsh
binary installation