Properly spawn commands on Windows

This commit is contained in:
sharkdp committed 2018-02-02 23:04:19 +01:00
1 parent f67de67900
commit 00295f3f7f
1 file changed
+1
+1
View File
@@ -17,6 +17,7 @@ pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {
#[cfg(target_os = "windows")]
pub fn run_shell_command(command: &str) -> io::Result<ExitStatus> {
Command::new("cmd")
.arg("/C")
.arg(command)
.stdin(Stdio::null())
.stdout(Stdio::null())