Finished off the NixOS fix. OS & Shell reporting should now work properly.

This commit is contained in:
iVacon 2023-06-20 16:13:51 +03:00
parent 10bd4bd6e2
commit 34ab056d8f

View file

@ -43,6 +43,13 @@ fn main() {
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])
.output();