Skip to content

Commit

Permalink
Merge pull request #373 from citrus-it/illumos
Browse files Browse the repository at this point in the history
Fix build on illumos
  • Loading branch information
stanislav-tkach authored Mar 16, 2024
2 parents 9986b75 + 4fd9abc commit 9e3bf69
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions os_info/src/illumos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ fn get_version() -> Option<String> {
}

fn get_os() -> Type {
match uname("-o") {
Some("illumos") => Type::Illumos,
None => Type::Unknown,
let os = match uname("-o") {
Some(o) => o,
None => return Type::Unknown,
};

match os.as_str() {
"illumos" => Type::Illumos,
_ => Type::Unknown
}
}

Expand Down

0 comments on commit 9e3bf69

Please sign in to comment.