Support Linux mint (#142)

This commit is contained in:
Roey Darwish Dror
2019-04-14 11:25:40 +03:00
parent 4002bfba57
commit dd6df4472d

View File

@@ -18,6 +18,7 @@ pub enum Distribution {
OpenSuse,
Void,
Solus,
Mint,
}
impl Distribution {
@@ -56,6 +57,10 @@ impl Distribution {
return Ok(Distribution::Solus);
}
if content.contains("Mint") {
return Ok(Distribution::Mint);
}
if PathBuf::from("/etc/gentoo-release").exists() {
return Ok(Distribution::Gentoo);
}