Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Oct 30, 2024
1 parent dd16799 commit 92e9688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ pub fn find_tool(pairs: &[(&str, &str)]) -> Option<String> {
pub fn detect_os() -> Option<String> {
if std::env::var("MSYSTEM").is_ok() {
let os = "windows/msys2";
if let Ok(output) = Command::new("sh").arg("-c").arg("which pacman").output() {
if let Ok(output) = std::process::Command::new("sh")
.arg("-c")
.arg("which pacman")
.output()
{
if output.status.success() {
return Some(os.to_string());
}
Expand Down

0 comments on commit 92e9688

Please sign in to comment.