Skip to content

Commit df61568

Browse files
committed
normalize crlf
1 parent 4e218ec commit df61568

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

aws-runtime/aws-config/mingw/src/aws/sdk/kotlin/runtime/auth/credentials/executeCommandMingw.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ internal actual suspend fun executeCommand(
151151
_wunlink(outPath.wideCString(this))
152152
}
153153

154-
exitCode to sb.toString()
154+
val normalized = sb.toString()
155+
.replace("\r\n", "\n")
156+
.replace("\r", "\n")
157+
158+
exitCode to normalized
155159
} finally {
156160
CloseHandle(pi.hThread)
157161
CloseHandle(pi.hProcess)

0 commit comments

Comments
 (0)