fix which message when brew missing (linux)

This commit is contained in:
Loic Nageleisen 2012-08-30 10:57:22 +02:00
parent a0b8051a6a
commit 077c340ed8

View file

@ -1,6 +1,6 @@
# default bash autocompletion # default bash autocompletion
bash_completion_file="/etc/bash_completion" bash_completion_file="/etc/bash_completion"
if which brew >/dev/null; then if which brew 2>/dev/null >/dev/null; then
bash_completion_file="`brew --prefix`$bash_completion_file" bash_completion_file="`brew --prefix`$bash_completion_file"
fi fi
[[ -f $bash_completion_file ]] || unset bash_completion_file [[ -f $bash_completion_file ]] || unset bash_completion_file