Fix : windows verify crash 1
This commit is contained in:
@@ -114,7 +114,10 @@ if ($isUpgrade) {
|
||||
name = $Name
|
||||
obs = [ordered]@{ host = $ObsHost; port = $ObsPort; password = $ObsPassword }
|
||||
}
|
||||
$config | ConvertTo-Json -Depth 5 | Set-Content -Path $configFile -Encoding UTF8
|
||||
# Surtout pas Set-Content -Encoding UTF8 : sous PowerShell 5.1 il préfixe un
|
||||
# BOM, et JSON.parse côté Node refuse le fichier.
|
||||
$json = $config | ConvertTo-Json -Depth 5
|
||||
[System.IO.File]::WriteAllText($configFile, $json, (New-Object System.Text.UTF8Encoding($false)))
|
||||
Info "Configuration écrite dans $configFile"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user