since the server install is the same now I just removed the check.
This commit is contained in:
+4
-13
@@ -9,21 +9,12 @@ use std::process::exit;
|
||||
use tetanus::funcs::get_user_input;
|
||||
|
||||
pub fn install() -> Result<(), Box<dyn Error>> {
|
||||
let client = get_user_input("would you like to install the Tetanus client on this computer?")?
|
||||
.contains("y");
|
||||
let server = get_user_input("would you like to install the Tetanus server on this computer?")?
|
||||
.contains("y");
|
||||
let client =
|
||||
get_user_input("would you like to install the Tetanus on this computer?")?.contains("y");
|
||||
if client {
|
||||
client_install()?;
|
||||
}
|
||||
if server {
|
||||
println!("todo");
|
||||
}
|
||||
if !client && !server {
|
||||
println!(
|
||||
"no install selected, please answer y to one or both of the above prompts next time!"
|
||||
);
|
||||
exit(1);
|
||||
} else {
|
||||
println!("Ok then bye... not sure what you wanted here...");
|
||||
}
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user