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

Adjust to correctly work with quotes #59

Merged

Conversation

mikekwright
Copy link
Contributor

To allow the system to correctly work with quotes we need to make it so that it isn't the entire command that is wrapped with quotes, but only the portion which contains quotes. An example of this can be shown below.

This is to resolve issue #58

#docker/dockerutils.cfg
cmd=/bin/bash -c "ls && ps"
run-image -c '/bin/bash -c "ls && ps"' dev

@codecov-io
Copy link

codecov-io commented Aug 9, 2019

Codecov Report

Merging #59 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   90.52%   90.52%           
=======================================
  Files           5        5           
  Lines          95       95           
=======================================
  Hits           86       86           
  Misses          9        9

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5752972...6783dc3. Read the comment docs.

print('\n\n============================================================================')
print('{cmd}\n\n'.format(cmd=cmd))
print("{cmd} {kwcmd}".format(cmd=cmd, kwcmd=kwargs['cmd'] or ''))
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add the \n\n at the end of the print so it's consistent with before

@devonkinghorn devonkinghorn merged commit 18fb789 into master Aug 9, 2019
@mikekwright mikekwright deleted the mkw/bugfix/issue-58-quotes-only-sometimes-used branch August 9, 2019 21:35
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