Finished off the NixOS fix. OS & Shell reporting should now work properly.
This commit is contained in:
parent
10bd4bd6e2
commit
34ab056d8f
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@ fn main() {
|
||||||
distro_name = distro_name.replace('\"', "");
|
distro_name = distro_name.replace('\"', "");
|
||||||
// println!("OS: {}", Red.paint(distro_name.clone()));
|
// 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")
|
let figlet = Command::new("figlet")
|
||||||
.args(["-f", "smslant", &distro_name])
|
.args(["-f", "smslant", &distro_name])
|
||||||
.output();
|
.output();
|
||||||
|
|
Loading…
Reference in a new issue