Fix configuration parsing on windows

This commit is contained in:
Jean-Rémy Buchs 2017-08-29 19:44:13 +02:00 committed by Paul Chote
parent c19e423922
commit e187ce2e9b

View File

@ -208,9 +208,9 @@ function WaitForInput
function ReadConfigLine($line, $name) function ReadConfigLine($line, $name)
{ {
if ($line.StartsWith($name)) $prefix = $name + '='
if ($line.StartsWith($prefix))
{ {
$prefix = $name + '='
[Environment]::SetEnvironmentVariable($name, $line.Replace($prefix, '').Replace('"', '')) [Environment]::SetEnvironmentVariable($name, $line.Replace($prefix, '').Replace('"', ''))
} }
} }