1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vup: remove empty new line on unix

This commit is contained in:
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)