Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e7cfe6d
)
Alter test for `brew` to prevent false positive.
author
John Schulz
<github.com@jfsiii.org>
Wed, 10 Nov 2010 16:46:05 +0000
(11:46 -0500)
committer
John Schulz
<github.com@jfsiii.org>
Wed, 10 Nov 2010 16:46:05 +0000
(11:46 -0500)
`brew` reports 'no brew found in ...' to `stdout` (at least on Solaris) resulting in a false positive.
completion/brew.completion.bash
patch
|
blob
|
history
diff --git
a/completion/brew.completion.bash
b/completion/brew.completion.bash
index
a0d9819
..
371fe77
100644
(file)
--- 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