mxcl/homebrew — Issue #8801: Replace '/usr/bin/which -s' calls with a which? utility method
Author: jacknagel
Created: 2011-11-26 04:56:08+00:00
State: open
Labels: feature-suggestion

There are some formulae and places in the core code that use `which -s` to determine if things are installed. There are also ugly invocations like this that should really use `which -s`:

```ruby
if `/usr/bin/which pg_config`.chomp.empty?
```

we could clean this up so that we can just say

```ruby
if which? 'pg_config'
```