diff options
author | Aleksey Kladov <[email protected]> | 2020-02-10 14:37:12 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-10 14:37:12 +0000 |
commit | 727dcf52313f3f59c97861284ce8154e1ae03183 (patch) | |
tree | 514ec735d466af7257fff57c4c4740eb260accda /xtask/src/cmd.rs | |
parent | 46a474866e603eb11f3b601be3fb843c9fcc5b4d (diff) | |
parent | 57147d7471584e23135dff1e629a44dfd7657276 (diff) |
Merge pull request #3081 from matklad/with-output
xtask release
Diffstat (limited to 'xtask/src/cmd.rs')
-rw-r--r-- | xtask/src/cmd.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xtask/src/cmd.rs b/xtask/src/cmd.rs index 8e08a929b..37497fb74 100644 --- a/xtask/src/cmd.rs +++ b/xtask/src/cmd.rs | |||
@@ -37,6 +37,7 @@ pub fn run(cmdline: &str, dir: &str) -> Result<()> { | |||
37 | pub fn run_with_output(cmdline: &str, dir: &str) -> Result<String> { | 37 | pub fn run_with_output(cmdline: &str, dir: &str) -> Result<String> { |
38 | let output = do_run(cmdline, dir, &mut |_| {})?; | 38 | let output = do_run(cmdline, dir, &mut |_| {})?; |
39 | let stdout = String::from_utf8(output.stdout)?; | 39 | let stdout = String::from_utf8(output.stdout)?; |
40 | let stdout = stdout.trim().to_string(); | ||
40 | Ok(stdout) | 41 | Ok(stdout) |
41 | } | 42 | } |
42 | 43 | ||