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;
|
use tetanus::funcs::get_user_input;
|
||||||
|
|
||||||
pub fn install() -> Result<(), Box<dyn Error>> {
|
pub fn install() -> Result<(), Box<dyn Error>> {
|
||||||
let client = get_user_input("would you like to install the Tetanus client on this computer?")?
|
let client =
|
||||||
.contains("y");
|
get_user_input("would you like to install the Tetanus on this computer?")?.contains("y");
|
||||||
let server = get_user_input("would you like to install the Tetanus server on this computer?")?
|
|
||||||
.contains("y");
|
|
||||||
if client {
|
if client {
|
||||||
client_install()?;
|
client_install()?;
|
||||||
}
|
} else {
|
||||||
if server {
|
println!("Ok then bye... not sure what you wanted here...");
|
||||||
println!("todo");
|
|
||||||
}
|
|
||||||
if !client && !server {
|
|
||||||
println!(
|
|
||||||
"no install selected, please answer y to one or both of the above prompts next time!"
|
|
||||||
);
|
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user