fix: fix ASCII detection on MacOS (#4)

This commit is contained in:
Adrian Groh 2023-02-17 14:26:53 +01:00
parent 3311e623a3
commit e92fba8d8d
Signed by: Gobidev
GPG Key ID: 3AA3153E98B0D771

View File

@ -245,8 +245,13 @@ fn main() {
let os = get_info(&PfetchInfo::Os, &readouts).unwrap_or_default();
let logo_override = env::var("PF_ASCII");
let logo_name = logo_override.as_ref().unwrap_or(&os);
let mut logo = pfetch::logo(logo_name);
let logo_name = logo_override.unwrap_or(match env::consts::OS {
"linux" => os.clone(),
other => other.to_owned(),
});
let mut logo = pfetch::logo(&logo_name);
// color overrides
if let Ok(newcolor) = dotenv::var("PF_COL1") {