Skip to content

Commit a3eb3cc

Browse files
committed
🐛 Fix encoding
1 parent 8e73de7 commit a3eb3cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/genCmds.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ $commands = $rawCommands -split '\r\n|\n' | ForEach-Object { $_.Trim() }
66
$commandsStr = ($commands | ForEach-Object { "`t'$_'" }) -join ",`n"
77
$commandsScriptContent = "`$cmds = @(`n$commandsStr`n)"
88

9-
$commandsScriptContent | Out-File -FilePath $destCommandPath
9+
$utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $false
10+
[System.IO.File]::WriteAllText($destCommandPath, $commandsScriptContent, $utf8NoBomEncoding)

0 commit comments

Comments
 (0)