Compare commits
No commits in common. "0c41c3f79499ca3c29d1ad4c7774d45641b2bdc1" and "5a5e086bb7a5b66726ce4bd82f6872664ea200ac" have entirely different histories.
0c41c3f794
...
5a5e086bb7
@ -228,7 +228,7 @@ pub fn os(general_readout: &GeneralReadout) -> Option<String> {
|
||||
Some("Bedrock Linux".to_string())
|
||||
} else {
|
||||
match general_readout.distribution() {
|
||||
Ok(distribution) => Some(distribution.replace(" TEMPLATE_VERSION_ID", "")),
|
||||
Ok(distribution) => Some(distribution),
|
||||
Err(_) => None,
|
||||
}
|
||||
}
|
||||
|
||||
@ -206,10 +206,6 @@ fn main() {
|
||||
if std::env::args().any(|arg| arg.starts_with("-v") || arg.starts_with("--v")) {
|
||||
println!("pfetch-rs {}", env!("CARGO_PKG_VERSION"));
|
||||
std::process::exit(0);
|
||||
} else if std::env::args().len() > 1 {
|
||||
println!("pfetch show system information");
|
||||
println!("pfetch -v show version");
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
// source file specified by env: PF_SOURCE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user