Skip to content

Commit

Permalink
Merge pull request #381 from ecnelises/aix_sysname
Browse files Browse the repository at this point in the history
Use uname -s to detect system name
  • Loading branch information
stanislav-tkach committed May 5, 2024
2 parents 3d131a7 + 32e6dc8 commit ab7fc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_info/src/aix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn get_version() -> Option<String> {
}

fn get_os() -> Type {
match uname("-o").as_deref() {
match uname("-s").as_deref() {
Some("AIX") => Type::AIX,
_ => Type::Unknown,
}
Expand Down

0 comments on commit ab7fc07

Please sign in to comment.