only use brew if brew is installed

This commit is contained in:
Jeffrey Paul 2020-06-07 18:34:16 +00:00
parent 80ae2bea99
commit 9fb45b2621
1 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi
if which brew 2>&1 >/dev/null ; then
if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi
fi