Commit 9aff9b12 authored by Elijah Grubb's avatar Elijah Grubb

Handling environment variable values with whitespace

parent c9a16bbd
...@@ -4834,7 +4834,15 @@ sub emulabizeImage($;$$$$$$$$) ...@@ -4834,7 +4834,15 @@ sub emulabizeImage($;$$$$$$$$)
$dockerenvironmentvars = $iattrs{DOCKER_ENV}; $dockerenvironmentvars = $iattrs{DOCKER_ENV};
foreach my $elem (@$dockerenvironmentvars) { foreach my $elem (@$dockerenvironmentvars) {
print $runitfile "export "; print $runitfile "export ";
print $runitfile $elem; my $elemname;
my $elemvalue;
$elemname = substr($elem, 0, index($elem, '='));
$elemvalue = substr($elem, index($elem, '=') + 1);
print $runitfile $elemname;
print $runitfile "=";
print $runitfile "\"";
print $runitfile $elemvalue;
print $runitfile "\"";
print $runitfile "\n"; print $runitfile "\n";
} }
} }
......
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