Skip to content

Commit

Permalink
Condor 2 configuration script: write Setup.ini as UTF-8 without BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Aug 12, 2024
1 parent 1ca1124 commit 97d56f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs/Condor_2/Configure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97d56f8

Please sign in to comment.