Skip to content

Commit 9dec16b

Browse files
committed
fix file
1 parent 6278622 commit 9dec16b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/test-metatrader5-integration.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,22 @@ jobs:
9595
Write-Host "Setting MT5_DIR to $mt5Dir"
9696
9797
# 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+
)
111111
$configPath = Join-Path $mt5Dir "config\default.ini"
112112
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
114114
Write-Host "Created default config at $configPath"
115115
116116
break

0 commit comments

Comments
 (0)