1
0
mirror of synced 2026-01-13 23:26:10 +00:00

Only the key for %ENV, but not for %CONFIG, needs to be modified

This commit is contained in:
Axel Beckert 2013-03-14 00:10:18 +01:00
parent f0691c9a38
commit ff7ded28e8

View File

@ -3529,10 +3529,11 @@ sub exportEnvironment
foreach my $key ( keys %CONFIG )
{
$key =~ s/-/_/g;
if ( defined( $CONFIG{ $key } ) )
{
$ENV{ $key } = $CONFIG{ $key };
my $envkey = $key;
$envkey =~ s/-/_/g;
$ENV{ $envkey } = $CONFIG{ $key };
}
}
}