Skip to main content

run_shell_command_quietly

Function run_shell_command_quietly 

Source
pub fn run_shell_command_quietly(command_str: &str) -> Result<(), Error>
Expand description

Executes a shell command quietly (suppressing output) and returns an error if it fails.

ยงErrors

Returns an error if the command fails to execute or returns a non-zero exit status.