television_utils/
command.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use std::process::Command;

#[cfg(not(windows))]
pub fn shell_command() -> Command {
    let mut cmd = Command::new("sh");

    cmd.arg("-c");

    cmd
}

#[cfg(windows)]
pub fn shell_command() -> Command {
    let mut cmd = Command::new("cmd");

    cmd.arg("/c");

    cmd
}