vup: remove empty new line on unix

pull/6248/head
Delyan Angelov 2020-08-28 19:02:28 +03:00
parent 2ce5797ec2
commit dde1b89c5e
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ fn (app App) recompile_v() {
println('> recompiling v itself with `$vself` ...')
}
if self_result := os.exec(vself) {
println(self_result.output)
println(self_result.output.trim_space())
if self_result.exit_code == 0 {
return
}

View File

@ -281,7 +281,7 @@ pub fn exec(cmd string) ?Result {
break
}
}
soutput := read_data.str().trim_space()
soutput := read_data.str()
read_data.free()
exit_code := u32(0)
C.WaitForSingleObject(proc_info.h_process, C.INFINITE)