fix(engine): restore the use of newline everywhere
Some checks failed
Code QL / code-ql (push) Has been cancelled
Azure Static Web Apps CI/CD / Build and Deploy (push) Has been cancelled
Release / changelog (push) Has been cancelled
Release / artifacts (push) Has been cancelled

This commit is contained in:
Jan De Dobbeleer 2024-11-26 20:37:36 +01:00 committed by Jan De Dobbeleer
parent 72fec1f5f6
commit dfcccaabe0

View file

@ -117,11 +117,6 @@ func (e *Engine) pwd() {
func (e *Engine) getNewline() string { func (e *Engine) getNewline() string {
newline := "\n" newline := "\n"
switch e.Env.Shell() {
case shell.PWSH, shell.PWSH5:
newline = "\r\n"
}
if e.Plain || e.Env.Flags().Debug { if e.Plain || e.Env.Flags().Debug {
return newline return newline
} }