Skip to content

Commit

Permalink
os/mac/diagnostic: prevent some double diagostic failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Aug 11, 2021
1 parent 1aa1c8e commit ebef0f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Homebrew/extend/os/mac/diagnostic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,13 @@ def check_if_supported_sdk_available
locator = MacOS.sdk_locator

source = if locator.source == :clt
return if MacOS::CLT.below_minimum_version? # Handled by other diagnostics.

update_instructions = MacOS::CLT.update_instructions
"Command Line Tools (CLT)"
else
return if MacOS::Xcode.below_minimum_version? # Handled by other diagnostics.

update_instructions = MacOS::Xcode.update_instructions
"Xcode"
end
Expand Down

0 comments on commit ebef0f1

Please sign in to comment.