Don't attempt to upload if no servers were given
This commit is contained in:
parent
826bc237a3
commit
d48fa4d489
@ -107,6 +107,12 @@ fn main() -> Result<(), String> {
|
|||||||
no_confirm,
|
no_confirm,
|
||||||
file_name,
|
file_name,
|
||||||
} => {
|
} => {
|
||||||
|
|
||||||
|
if servers.is_empty() {
|
||||||
|
println!("Please provide some servers to upload to. See --help");
|
||||||
|
return Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
start_ssh_agent()?;
|
start_ssh_agent()?;
|
||||||
|
|
||||||
let file_name_info =
|
let file_name_info =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user