Minor reformatting

This commit is contained in:
Leonard Steppy 2024-12-13 00:51:36 +01:00
parent affdc29df9
commit 28bdcb41aa

View File

@ -210,7 +210,11 @@ fn main() -> Result<(), String> {
let mut destination = OsString::from(&server.ssh_name); let mut destination = OsString::from(&server.ssh_name);
destination.push(":"); destination.push(":");
destination.push(&server.server_directory_path); 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("/");
} }
destination.push(&upload_directory); destination.push(&upload_directory);
@ -252,7 +256,7 @@ fn main() -> Result<(), String> {
} }
} }
println!("Done!") println!("Done!");
} }
Command::Command { command } => { Command::Command { command } => {
start_ssh_agent()?; start_ssh_agent()?;
@ -267,7 +271,7 @@ fn main() -> Result<(), String> {
.wait() .wait()
.map_err(|e| format!("failed to wait for ssh command completion: {e}"))?; .map_err(|e| format!("failed to wait for ssh command completion: {e}"))?;
} }
println!("Done!") println!("Done!");
} }
} }