Skip to content

Commit

Permalink
Merge pull request #206 from Lonami/arch-file-release
Browse files Browse the repository at this point in the history
Recognise Arch Linux when using file release
  • Loading branch information
stanislav-tkach authored Jul 23, 2020
2 parents f908884 + 7f9f6b8 commit 2a2137b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os_info/src/linux/file_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fn retrieve(distributions: &[ReleaseInfo]) -> Option<Info> {

fn get_type(name: &str) -> Option<Type> {
match name.to_lowercase().as_ref() {
"arch linux" => Some(Type::Arch),
"centos linux" => Some(Type::Centos),
"ubuntu" => Some(Type::Ubuntu),
_ => None,
Expand Down

0 comments on commit 2a2137b

Please sign in to comment.