Minor reformatting
This commit is contained in:
parent
affdc29df9
commit
28bdcb41aa
10
src/main.rs
10
src/main.rs
@ -210,7 +210,11 @@ fn main() -> Result<(), String> {
|
||||
let mut destination = OsString::from(&server.ssh_name);
|
||||
destination.push(":");
|
||||
destination.push(&server.server_directory_path);
|
||||
if !server.server_directory_path.to_string_lossy().ends_with("/") {
|
||||
if !server
|
||||
.server_directory_path
|
||||
.to_string_lossy()
|
||||
.ends_with("/")
|
||||
{
|
||||
destination.push("/");
|
||||
}
|
||||
destination.push(&upload_directory);
|
||||
@ -252,7 +256,7 @@ fn main() -> Result<(), String> {
|
||||
}
|
||||
}
|
||||
|
||||
println!("Done!")
|
||||
println!("Done!");
|
||||
}
|
||||
Command::Command { command } => {
|
||||
start_ssh_agent()?;
|
||||
@ -267,7 +271,7 @@ fn main() -> Result<(), String> {
|
||||
.wait()
|
||||
.map_err(|e| format!("failed to wait for ssh command completion: {e}"))?;
|
||||
}
|
||||
println!("Done!")
|
||||
println!("Done!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user