Use command_exists function

This commit is contained in:
Henrik Lissner 2013-03-16 18:08:45 -04:00
parent ab47c97443
commit 81fa8a39d3

View file

@ -4,7 +4,7 @@ if [ -d ~/Dropbox ]; then
PATH=~/Dropbox/dev/bin:$PATH
fi
if [ "`command -v brew 2>&1`" ]; then
if command_exists brew; then
BREWDIR=`brew --prefix`
PATH=$BREWDIR/sbin:$PATH