Skip to content

Commit 9882472

Browse files
fix: fix yaml char in windows (#1616)
fix: fix yaml char Signed-off-by: Shubhranshu Mahapatra <[email protected]>
1 parent b22fda9 commit 9882472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msi-builder/postinstall.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SET InstallDir=%~1
33
SET FilePath=%InstallDir%\os\finch.yaml
44

55
if exist "%FilePath%" (
6-
powershell -Command "$installPath = '%InstallDir%'.Replace('\', '/'); (Get-Content '%FilePath%') -replace '__INSTALLFOLDER__', $installPath | Set-Content -Encoding UTF8 '%FilePath%'"
6+
powershell -Command "$installPath = '%InstallDir%'.Replace('\', '/'); $content = Get-Content '%FilePath%' -Raw; $content = $content -replace '__INSTALLFOLDER__', $installPath; $content = $content.Replace(\"`r`n\", \"`n\"); $utf8NoBom = New-Object System.Text.UTF8Encoding $false; [System.IO.File]::WriteAllText('%FilePath%', $content, $utf8NoBom)"
77
)
88

99
icacls "%InstallDir%\lima\data" /grant Users:(OI)(CI)M

0 commit comments

Comments
 (0)