From 97d56f81d14d44c6af9922cc29050a8f489bfd0a Mon Sep 17 00:00:00 2001 From: Matteo Hausner Date: Mon, 12 Aug 2024 23:22:05 +0200 Subject: [PATCH] Condor 2 configuration script: write Setup.ini as UTF-8 without BOM --- configs/Condor_2/Configure.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/Condor_2/Configure.ps1 b/configs/Condor_2/Configure.ps1 index bccddce..0440bff 100644 --- a/configs/Condor_2/Configure.ps1 +++ b/configs/Condor_2/Configure.ps1 @@ -157,7 +157,7 @@ $pilotDirs | ForEach-Object { try { if (Test-Path $setupFile -PathType Leaf) { - (Get-Content $setupFile -Raw) -replace '(?m)^\[Input][\s\S]*?(\[|\z)', '$1' | Out-File $setupFile -NoNewline + New-Item $setupFile -Value ((Get-Content -Raw $setupFile) -replace '(?m)^\[Input][\s\S]*?(\[|\z)', '$1') -Force | Out-Null } Add-Content -Path $setupFile -Value $SetupIniInputSection