Skip to content

Commit

Permalink
refactor: Update OS target detection logic in install module
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Sep 5, 2024
1 parent 84beb21 commit 50ad2ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xtask/src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ impl OsTarget {
return Ok(OsTarget::Debian);
} else if os.contains("ubuntu") {
return Ok(OsTarget::Ubuntu);
} else if os.contains("redhat") || os.contains("rhel") {
return Ok(OsTarget::RedHat);
} else if os.contains("fedora") {
return Ok(OsTarget::Fedora);
} else if os.contains("almalinux") {
Expand All @@ -147,7 +145,9 @@ impl OsTarget {
return Ok(OsTarget::RockyLinux);
} else if os.contains("arch") {
return Ok(OsTarget::ArchLinux);
}
} else if os.contains("redhat") || os.contains("rhel") {
return Ok(OsTarget::RedHat);
}
}
Err(anyhow!("Unsupported OS"))
}
Expand Down

0 comments on commit 50ad2ce

Please sign in to comment.