DevelopmentTools.installed?: Use locate
Use locate rather than which to search for clang or gcc. locate searches both $HOMEBREW_PREFIX/bin and /usr/bin.
This commit is contained in:
parent
426c998ff5
commit
4474ef47f9
@ -16,7 +16,7 @@ class DevelopmentTools
|
||||
end
|
||||
|
||||
def installed?
|
||||
which("clang") || which("gcc")
|
||||
locate("clang") || locate("gcc")
|
||||
end
|
||||
|
||||
def installation_instructions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user