added some install stuff, and started the code for launching odysseus in

the projects distrobox for ai stuff.
This commit is contained in:
pyro committed 2026-09-30 09:41:22 -05:00
1 parent 7247e85762
commit 7bc5442416
3 files changed
+71 -1

No files matched your search

+24
View File
@@ -129,6 +129,30 @@ pub fn client_install() -> Result<(), Box<dyn Error>> {
root_config_folder_path.join("victim"),
&options,
)?;
if get_user_input(
"do you want to copy tetanus to your path so you can run it anywhere?",
)?
.contains("y")
{
println!("this will require sudo. Please complete the following sudo prompt.");
if let Ok(exe_path) = env::current_exe() {
if let Ok(res) = Command::new("sudo")
.arg("cp")
.arg(exe_path.display().to_string())
.arg("/usr/bin/tetanus")
.status()
{
if res.success() {
println!("copied to path!");
println!("install completed!");
} else {
eprintln!(
"error copying to path. please copy this executable to your path manually."
);
}
}
}
}
env::set_current_dir("../")?;
remove_dir_all("./temp")?;
}