Skip to content
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

fix(shim): properly check wslpath/cygpath command first #6114

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

sitiom
Copy link

@sitiom sitiom commented Aug 19, 2024

Description

Do not suppress stderr for commands, only suppress output when checking for wslpath/cygpath commands first.

Motivation and Context

Closes #6112

How Has This Been Tested?

wcurl at ScoopInstaller/Main#6117

Before: Error, no output
image

After: now returns an error with the output
image

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

lib/core.ps1 Outdated Show resolved Hide resolved
sitiom and others added 2 commits August 19, 2024 18:55
Co-authored-by: Hsiao-nan Cheung <[email protected]>
Note:

- Passing arguments to mingw/cygwin bash does not work without `bash -c`
- Not much I can do for PowerShell: https://github.com/Azure/azure-cli/blob/dev/doc/quoting-issues-with-powershell.md
@niheaven niheaven merged commit 7a309a1 into ScoopInstaller:develop Oct 9, 2024
2 checks passed
@sitiom sitiom deleted the patch-1 branch October 9, 2024 11:41
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.

2 participants