Merge pull request #215 from felixbuenemann/fix-dev-script-on-linux

Fix dev.sh when homebrew is missing
This commit is contained in:
siddontang 2015-12-20 13:51:35 +08:00
commit ebe5340cf9
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 #default snappy and leveldb install path
#you may change yourself #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 if [[ ! -z "$HOMEBREW_PREFIX" ]]; then
SNAPPY_DIR=$HOMEBREW_PREFIX/opt/snappy SNAPPY_DIR=$HOMEBREW_PREFIX/opt/snappy
LEVELDB_DIR=$HOMEBREW_PREFIX/opt/leveldb LEVELDB_DIR=$HOMEBREW_PREFIX/opt/leveldb