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 bash paths with spaces #1092

Merged

Conversation

sfoulston
Copy link
Contributor

@sfoulston sfoulston commented Mar 20, 2020

The Basher.run command is failing when it contains paths with spaces. This change encloses string interpolated paths in single quotes to allow paths with spaces to work with the bash script.

Changed CodegenTestHelper.cliFolderURL to use a path with a space in it (changed "scripts" to "scripts directory") to test this change.

@apollo-cla
Copy link

@sfoulston: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Copy link
Contributor

@designatednerd designatednerd left a comment

Choose a reason for hiding this comment

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

Good find, and thanks so much for updating the tests to validate this!

@designatednerd designatednerd added this to the Next Release milestone Mar 21, 2020
@sfoulston sfoulston closed this Mar 22, 2020
@sfoulston sfoulston deleted the fix/bash-paths-with-spaces branch March 22, 2020 16:49
@sfoulston sfoulston restored the fix/bash-paths-with-spaces branch March 22, 2020 17:02
@sfoulston
Copy link
Contributor Author

Re-opening PR, accidentally deleted branch.

@sfoulston sfoulston reopened this Mar 22, 2020
@designatednerd designatednerd merged commit 5866185 into apollographql:master Mar 22, 2020
@sfoulston sfoulston deleted the fix/bash-paths-with-spaces branch March 25, 2020 14:38
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.

3 participants