Skip to main content

run_shell

Function run_shell 

Source
pub fn run_shell(
    cmd: &str,
    stdin_data: Option<&str>,
    env: &[(&str, &str)],
) -> Result<(), ReleaseError>
Expand description

Run a shell command (sh -c), optionally piping data to stdin and/or injecting environment variables. Returns an error if the command exits non-zero.