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:
Shaun Jackman 2017-12-20 17:26:17 -08:00
parent 426c998ff5
commit 4474ef47f9

View File

@ -16,7 +16,7 @@ class DevelopmentTools
end
def installed?
which("clang") || which("gcc")
locate("clang") || locate("gcc")
end
def installation_instructions