Skip to content

Commit

Permalink
tuning empty msg
Browse files Browse the repository at this point in the history
  • Loading branch information
haxjump committed Oct 11, 2024
1 parent 539d230 commit 1ceb960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ruc"
version = "7.5.0"
version = "7.5.1"
authors = ["[email protected]"]
edition = "2021"
description = "Rust Util Collections"
Expand Down
4 changes: 2 additions & 2 deletions src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ impl<'a> RemoteHost<'a> {
channel.wait_close().c(d!())?;

if stdout.is_empty() {
stdout = "null".as_bytes().to_vec();
stdout = "''".as_bytes().to_vec();
}

if stderr.is_empty() {
stderr = "null".to_string();
stderr = "''".to_string();
}

match channel.exit_status() {
Expand Down

0 comments on commit 1ceb960

Please sign in to comment.