diff --git a/src/client.rs b/src/client.rs index 06f8fe9..aefde59 100644 --- a/src/client.rs +++ b/src/client.rs @@ -30,6 +30,8 @@ pub fn forward_command_to_server(mut stream: UnixStream, action: opts::ActionWit let mut buf = String::new(); stream.set_read_timeout(Some(std::time::Duration::from_millis(100)))?; stream.read_to_string(&mut buf)?; - println!("{}", buf); + if !buf.is_empty() { + println!("{}", buf); + } Ok(()) }