line endings in windows are normalized for chronos output

This commit is contained in:
Eric 2023-11-29 10:32:00 +11:00
parent 075e89de2b
commit 47e4783b14
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -46,10 +46,7 @@ proc waitUntilOutput*(node: NodeProcess, output: string, started: Future[void])
let stream = node.process.stdOutStream let stream = node.process.stdOutStream
try: try:
let lineEnding = when defined(windows): "\r\n" while(let line = await stream.readLine(0, "\n"); line != ""):
else: "\n"
while(let line = await stream.readLine(0, lineEnding); line != ""):
if node.debug: if node.debug:
echo line echo line