Commit 341ef64a authored by Elijah Grubb's avatar Elijah Grubb

Added regex for quote escape of docker CMDs

parent b1240c1c
......@@ -5146,6 +5146,7 @@ sub emulabizeImage($;$$$$$$$$$)
# need to be careful about variables to be expanded
foreach my $elem (@$dockerentrypoint) {
print $runitfile "\"";
$elem =~ s/\"/\\\"/g;
print $runitfile $elem;
print $runitfile "\"";
print $runitfile " ";
......@@ -5157,6 +5158,7 @@ sub emulabizeImage($;$$$$$$$$$)
foreach my $elem (@$dockercmd) {
print $runitfile "\"";
$elem =~ s/\"/\\\"/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