(cmd_str: &str)
| 496 | } |
| 497 | |
| 498 | fn build_shell_command(cmd_str: &str) -> TokioCommand { |
| 499 | #[cfg(windows)] |
| 500 | { |
| 501 | let mut cmd = TokioCommand::new("cmd.exe"); |
| 502 | cmd.arg("/C").arg(cmd_str); |
| 503 | cmd |
| 504 | } |
| 505 | #[cfg(not(windows))] |
| 506 | { |
| 507 | let mut cmd = TokioCommand::new("bash"); |
| 508 | cmd.arg("-c").arg(cmd_str); |
| 509 | configure_tool_scratch(&mut cmd); |
| 510 | cmd |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | #[cfg(unix)] |
| 515 | fn build_detached_shell_wrapper(command: &str) -> StdCommand { |