From 0ab0e5243fd3ccfe6572967c62118b0bd105a9bb Mon Sep 17 00:00:00 2001 From: Adrian Groh Date: Sat, 8 Apr 2023 18:52:51 +0200 Subject: [PATCH] fix(lib): never show `TEMPLATE_VERSION_ID` in os name This appears when running pfetch-rs in a podman Arch Linux container --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9ae79aa..e693a56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -228,7 +228,7 @@ pub fn os(general_readout: &GeneralReadout) -> Option { Some("Bedrock Linux".to_string()) } else { match general_readout.distribution() { - Ok(distribution) => Some(distribution), + Ok(distribution) => Some(distribution.replace(" TEMPLATE_VERSION_ID", "")), Err(_) => None, } }