mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: fix os.exec().output usages, that may rely on trimmed lines
This commit is contained in:
@ -70,7 +70,7 @@ fn main() {
|
||||
|
||||
fn exec(s string) string {
|
||||
e := os.exec(s) or { panic(err) }
|
||||
return e.output
|
||||
return e.output.trim_right('\r\n')
|
||||
}
|
||||
|
||||
// returns milliseconds
|
||||
|
Reference in New Issue
Block a user