Skip to content

fix(shim): Fix shim when app path has white spaces#4734

Merged
niheaven merged 3 commits intodevelopfrom
fix-shim
Feb 26, 2022
Merged

fix(shim): Fix shim when app path has white spaces#4734
niheaven merged 3 commits intodevelopfrom
fix-shim

Conversation

@niheaven
Copy link
Copy Markdown
Member

Description

Enclose app path with double quotes to fix bug while app path has white spaces.

Motivation and Context

Closes #4728

How Has This Been Tested?

Only occurred in exe shims, hard to test.

Checklist:

  • I have read the Contributing Guide.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

@rashil2000
Copy link
Copy Markdown
Member

I think we should wait for more people to test this. I have used multiple custom shims with whitespaces, and they work.

@niheaven niheaven added the waiting feedback Waiting for user feedback label Feb 11, 2022
@jbtls
Copy link
Copy Markdown

jbtls commented Feb 25, 2022

Hey @rashil2000 how can i test it?

@rashil2000
Copy link
Copy Markdown
Member

Simpler method would be:

scoop config SCOOP_BRANCH fix-shim
scoop update

@jbtls
Copy link
Copy Markdown

jbtls commented Feb 25, 2022

Tested it with some shims. Seems to work good.

@niheaven
Copy link
Copy Markdown
Member Author

@rashil2000 Does this break something?

@rashil2000
Copy link
Copy Markdown
Member

I don't think so, but I have been unable to reproduce the original issue for a long time.

My $Env:SCOOP points to 'E:\Scoop Stuff' and all my shims work 😢

@niheaven
Copy link
Copy Markdown
Member Author

Aha, I could not reproduce, too... Maybe some Env setting or OS version related?

If it is harmless for other code or users, merging this tends to be not a bad choice.

Copy link
Copy Markdown
Member

@rashil2000 rashil2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's fix later if it breaks anything

@rashil2000
Copy link
Copy Markdown
Member

Are we making a release?

@niheaven
Copy link
Copy Markdown
Member Author

Yes, after merging this, I'll make a release.

@niheaven niheaven merged commit 9024ee4 into develop Feb 26, 2022
@niheaven niheaven deleted the fix-shim branch February 26, 2022 14:52
se35710 pushed a commit to se35710/scoop that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting feedback Waiting for user feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants