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

Ensure quotes and new lines are escaped in echo #1332

merged 1 commit into from Nov 9, 2016


Copy link

@ssalinas ssalinas commented Oct 31, 2016

So, we had previously made this a bit more resilient to weird new lines in environment variables not being loaded properly in docker by adding them to command line args instead. But, with the right order or quotes/newlines/etc, we can still run into issues at the echo statement before the actual command is executed. This adds escaping for the double quotes as well as calling echo -e so that the escaped characters are expanded properly when printed.

@ssalinas ssalinas added the hs_qa label Nov 1, 2016
@ssalinas ssalinas modified the milestone: 0.12.0 Nov 2, 2016
Copy link
Member Author

ssalinas commented Nov 2, 2016

@tpetr , renamed the helper to be more descriptive here

@ssalinas ssalinas modified the milestones: 0.12.0, 0.13.0 Nov 4, 2016
@ssalinas ssalinas merged commit f57d9af into master Nov 9, 2016
2 checks passed
@ssalinas ssalinas deleted the docker_run_script branch Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants