Commit 08976c8e authored by David Johnson's avatar David Johnson

Merge branch 'master' into 'master'

Added regex for quote escape in docker CMDs

See merge request !39
parents b1240c1c 9622ce83
......@@ -5146,6 +5146,7 @@ sub emulabizeImage($;$$$$$$$$$)
# need to be careful about variables to be expanded
foreach my $elem (@$dockerentrypoint) {
print $runitfile "\"";
$elem =~ s/([^\\])(\\\\)*"/\1\2\\\"/g;
print $runitfile $elem;
print $runitfile "\"";
print $runitfile " ";
......@@ -5157,6 +5158,7 @@ sub emulabizeImage($;$$$$$$$$$)
foreach my $elem (@$dockercmd) {
print $runitfile "\"";
$elem =~ s/([^\\])(\\\\)*"/\1\2\\\"/g;
print $runitfile $elem;
print $runitfile "\"";
print $runitfile " ";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment