File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -95,22 +95,22 @@ jobs:
95
95
Write-Host "Setting MT5_DIR to $mt5Dir"
96
96
97
97
# Create minimal configuration file to help with headless mode
98
- $configContent = @"
99
- [Common]
100
- Login=0
101
- ProxyEnable=0
102
- CertCheckDisable=1
103
- AutoUpdate=0
104
- DisableStartupCompany=1
105
- EnableOpenCL=0
106
- News=0
107
- StartupCompany=0
108
- Community=0
109
- AutoUpdate.Enable=0
110
- " @
98
+ $configLines = @(
99
+ ' [Common]',
100
+ ' Login=0',
101
+ ' ProxyEnable=0',
102
+ ' CertCheckDisable=1',
103
+ ' AutoUpdate=0',
104
+ ' DisableStartupCompany=1',
105
+ ' EnableOpenCL=0',
106
+ ' News=0',
107
+ ' StartupCompany=0',
108
+ ' Community=0',
109
+ ' AutoUpdate.Enable=0'
110
+ )
111
111
$configPath = Join-Path $mt5Dir "config\default.ini"
112
112
New-Item -Path (Split-Path -Parent $configPath) -ItemType Directory -Force
113
- Set-Content -Path $configPath -Value $configContent
113
+ $configLines | Out-File -FilePath $configPath -Encoding utf8
114
114
Write-Host "Created default config at $configPath"
115
115
116
116
break
You can’t perform that action at this time.
0 commit comments