mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
vlib: fix os.exec().output usages, that may rely on trimmed lines
This commit is contained in:
parent
5af6a685b8
commit
cadde3e9f0
7 changed files with 10 additions and 9 deletions
|
@ -58,7 +58,7 @@ pub fn run(cmd string) string {
|
|||
}
|
||||
verbose_trace_exec_result(x)
|
||||
if x.exit_code == 0 {
|
||||
return x.output
|
||||
return x.output.trim_right('\r\n')
|
||||
}
|
||||
return ''
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue