From 34ab056d8fc4917c59d8058482951f852455c08e Mon Sep 17 00:00:00 2001 From: iVacon Date: Tue, 20 Jun 2023 16:13:51 +0300 Subject: [PATCH] Finished off the NixOS fix. OS & Shell reporting should now work properly. --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index 0a96090..49ec146 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,13 @@ fn main() { let mut distro_name: String = release_distro[5..release_distro.len() - 1].to_string(); distro_name = distro_name.replace('\"', ""); // println!("OS: {}", Red.paint(distro_name.clone())); + + // Quick fix for NixOS + // I know I should change the way the program gets the distro, but I haven't been able to find a + // fix that doesn't rely on other crates or libraries. + if distro_name == "EPORT_URL=https://github.com/NixOS/nixpkgs/issues" { + distro_name = "NixOS".to_string(); + } let figlet = Command::new("figlet") .args(["-f", "smslant", &distro_name])