Skip to content

Ensure quotes and new lines are escaped in echo#1332

Merged
ssalinas merged 1 commit into
masterfrom
docker_run_script
Nov 9, 2016
Merged

Ensure quotes and new lines are escaped in echo#1332
ssalinas merged 1 commit into
masterfrom
docker_run_script

Conversation

@ssalinas
Copy link
Copy Markdown
Contributor

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
@ssalinas
Copy link
Copy Markdown
Contributor 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
@ssalinas ssalinas deleted the docker_run_script branch November 9, 2016 14:47
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