Commit 43817132 authored by Elijah Grubb's avatar Elijah Grubb

Add quote escaping regex

parent 4f688fe5
......@@ -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