Skip to content

Commit

Permalink
Merge pull request #59 from antfie/main
Browse files Browse the repository at this point in the history
Fix scan_health formula to work on Intel
  • Loading branch information
NinjaLikesCheez authored Nov 13, 2024
2 parents 9f9565d + 55268e4 commit 48ffce7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Formula/scan_health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ class ScanHealth < Formula
end

def install
bin.install "scan_health-mac-arm64" => "scan_health"
if OS.mac?
if Hardware::CPU.arm?
bin.install "scan_health-mac-arm64" => "scan_health"
elsif Hardware::CPU.intel?
bin.install "scan_health-mac-amd64" => "scan_health"
end
elsif OS.linux?
bin.install "scan_health-linux-amd64" => "scan_health"
end
end

test do
Expand Down

0 comments on commit 48ffce7

Please sign in to comment.