Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rust/crates/azlin/src/cmd_sync_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ pub(crate) async fn handle_cp(
let port_str = tunnel.local_port.to_string();

let scp_source = if crate::cp_helpers::is_remote_path(source) {
let remote_path = source.split_once(':').unwrap().1;
let remote_path = source.split_once(':').expect("remote path must contain ':'").1;
format!("{}@127.0.0.1:{}", target.user, remote_path)
} else {
source.clone()
};
let scp_dest = if crate::cp_helpers::is_remote_path(dest) {
let remote_path = dest.split_once(':').unwrap().1;
let remote_path = dest.split_once(':').expect("remote path must contain ':'").1;
format!("{}@127.0.0.1:{}", target.user, remote_path)
} else {
dest.clone()
Expand Down
2 changes: 0 additions & 2 deletions rust/crates/azlin/src/sync_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,4 @@ mod tests {
assert!(cmd.contains("500"));
assert!(cmd.contains("/var/log/auth.log"));
}


}
Loading