forked from mirror/ledisdb
Merge pull request #215 from felixbuenemann/fix-dev-script-on-linux
Fix dev.sh when homebrew is missing
This commit is contained in:
commit
ebe5340cf9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue