forked from mirror/ledisdb
Fix dev.sh when homebrew is missing
This commit is contained in:
parent
6d836cc4b7
commit
bc7600ec60
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue