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.
This commit is contained in:
John Schulz
2010-11-10 11:46:05 -05:00
parent e7cfe6d1df
commit 7ce4184c93

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