Fix dev.sh when homebrew is missing

This commit is contained in:
Felix Bünemann 2015-12-19 20:30:26 +01:00
parent 6d836cc4b7
commit bc7600ec60
1 changed files with 1 additions and 1 deletions

2
dev.sh Normal file → Executable file
View File

@ -10,7 +10,7 @@ fi
#default snappy and leveldb install path
#you may change yourself
HOMEBREW_PREFIX=$(brew --prefix 2>/dev/null)
HOMEBREW_PREFIX=$(type brew >/dev/null 2>&1 && brew --prefix 2>/dev/null)
if [[ ! -z "$HOMEBREW_PREFIX" ]]; then
SNAPPY_DIR=$HOMEBREW_PREFIX/opt/snappy
LEVELDB_DIR=$HOMEBREW_PREFIX/opt/leveldb