diff --git a/src/main.rs b/src/main.rs index f78a361..4427066 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,8 @@ fn main() -> Result<()> { .if_supports_color(Stdout, |text| text.on_bright_red().white()) ); cmd!(sh, "sudo apt update -y").run()?; - cmd!(sh, "sudo apt upgrade -y").run()?; + // Ignoring xrdp error with .ignore_status() for now + cmd!(sh, "sudo apt upgrade -y").ignore_status().run()?; println!( "{}", "✅ 1. Successfully ran update and upgrade commands." @@ -46,13 +47,13 @@ fn main() -> Result<()> { ); println!( - "\n{} Enabling SSH...", + "\n{} Installing curl and enabling SSH...", "2.".if_supports_color(Stdout, |text| text.on_magenta().white()), ); - cmd!(sh, "sudo apt install openssh-server -y").run()?; + cmd!(sh, "sudo apt install curl openssh-server -y").run()?; println!( "{}", - "✅ 2. Successfully enabled SSH." + "✅ 2. Successfully installed curl and enabled SSH." .if_supports_color(Stdout, |text| text.on_green().white()) ); let username = cmd!(sh, "whoami").read()?;