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

Wrap transformer path with quotes #35

Merged
merged 1 commit into from
May 16, 2017
Merged

Wrap transformer path with quotes #35

merged 1 commit into from
May 16, 2017

Conversation

a3ammar
Copy link
Collaborator

@a3ammar a3ammar commented May 14, 2017

If __dirname contained spaces exec will fail because it runs the command in a shell. A quick fix would be to wrap the __dirname in single quotes.

I don't know Node very well and googling around I couldn't find a builtin safe escaper for command arguments. I think the best way to handle this is to depend on a library that does this, but that is up to you.

Since node's `exec` runs the command in a shell, we must quote any arguments we pass to it.
@rhys-vdw rhys-vdw merged commit 713bf46 into usabilityhub:master May 16, 2017
@rhys-vdw
Copy link
Collaborator

rhys-vdw commented May 16, 2017

Thanks @a3ammar.

I made a couple of tweaks:

Also I have added you as a collaborator and acknowledged your contribution in package.json.

You can now update to 5.0.1.

@a3ammar
Copy link
Collaborator Author

a3ammar commented May 16, 2017

Thanks! I didn't think about windows, good call!

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