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

View File

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