fn exec_cmd_nocheck(mut cmd: Command) -> Output {
    info!("executing: {:?}", cmd);
    let output = match cmd.output() {
        Ok(res) => res,
        Err(e) => panic!("failed to execute: {}", e)
    };

    info!("---out---");
    info!("{}", String::from_utf8_lossy(&output.stdout));
    info!("---err---");
    info!("{}", String::from_utf8_lossy(&output.stderr));

    if output.status.signal().is_some() {
        info!(
            "terminated by a signal: {}",
            output.status.signal().unwrap()
        );
    }

    output
}
/// executes the given command, does not check exit status
executes the given command, does not check exit status
executes the given command does not check exit status
fn exec_cmd_nocheck(mut cmd: Command) -> Output {
    info!("executing: {:?}", cmd);
    let output = match cmd.output() {
        Ok(res) => res,
        Err(e) => panic!("failed to execute: {}", e)
    };
    info!("---out---");
    info!("{}", String::from_utf8_lossy(&output.stdout));
    info!("---err---");
    info!("{}", String::from_utf8_lossy(&output.stderr));
    if output.status.signal().is_some() {
        info!(
            "terminated by a signal: {}",
            output.status.signal().unwrap()
        );
    }
    output
}
fn exec_cmd_nocheck ( mut cmd : Command ) -> Output { info ! ( " " cmd ) ; let output = match cmd . output ( ) { Ok ( res ) => res , Err ( e ) => panic ! ( " " e ) } ; info ! ( " " ) ; info ! ( " " String from_utf8_lossy ( output stdout ) ) ; info ! ( " " ) ; info ! ( " " String from_utf8_lossy ( output stderr ) ) ; if output . status . signal ( ) . is_some ( ) { info ! ( " " output status signal ( ) unwrap ( ) ) ; } output }
executes the given command, does not check exit status
executes the given command does not check exit status
cmd
Command
cmd
Command