Alter test for `brew` to prevent false positive.

`brew` reports 'no brew found in ...' to `stdout` (at least on Solaris) resulting in a false positive.
pull/23/head
John Schulz 2010-11-10 11:46:05 -05:00
parent e7cfe6d1df
commit 7ce4184c93
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
if [ `which brew` ]; then
if which brew >/dev/null 2>&1; then
if [ -f `brew --prefix`/Library/Contributions/brew_bash_completion.sh ]; then
. `brew --prefix`/Library/Contributions/brew_bash_completion.sh
fi