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). Inherits stdio unless stdin_data is provided (in which case stdin is piped). env is injected into the child process; RELSTATE_* / SR_VERSION etc. flow through here.