-
Notifications
You must be signed in to change notification settings - Fork 242
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
shell_windows: Detect shell under ssh #4401
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cddb4db
to
c332132
Compare
3ae3da0
to
d2e3972
Compare
Check praveenkumar@1efb9fa one I think it would be more clear and we don't have to pass the process pid to helper function. |
d2e3972
to
d63d8ae
Compare
Many thanks for review Praveen. Just to avoid go into further check, I added a default result to identify non detected shell |
Looks like CI is failing because of |
d63d8ae
to
8c30366
Compare
@albfan: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@praveenkumar should be fixed now. I find with goimports but not sure where CI show that error |
Fixes: Issue #3582
Solution/Idea
$env:SHELL
not empty is not definitive to detect shell terminalProposed changes
Reuse our logic to detect powershell if current result is not definitive.
Testing
Use
crc oc-env
under ssh on windowsfixes #3582