From 7ce4184c939fe141230344ded3add3de6492115d Mon Sep 17 00:00:00 2001 From: John Schulz Date: Wed, 10 Nov 2010 11:46:05 -0500 Subject: [PATCH] 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. --- completion/brew.completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/brew.completion.bash b/completion/brew.completion.bash index a0d9819..371fe77 100644 --- a/completion/brew.completion.bash +++ b/completion/brew.completion.bash @@ -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 -- 2.17.1