mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-31 03:33:08 +00:00
line endings in windows are normalized for chronos output
This commit is contained in:
parent
075e89de2b
commit
47e4783b14
@ -46,10 +46,7 @@ proc waitUntilOutput*(node: NodeProcess, output: string, started: Future[void])
|
||||
let stream = node.process.stdOutStream
|
||||
|
||||
try:
|
||||
let lineEnding = when defined(windows): "\r\n"
|
||||
else: "\n"
|
||||
|
||||
while(let line = await stream.readLine(0, lineEnding); line != ""):
|
||||
while(let line = await stream.readLine(0, "\n"); line != ""):
|
||||
if node.debug:
|
||||
echo line
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user