From bc7600ec605cebbe891206112a1676bdc82e8f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Sat, 19 Dec 2015 20:30:26 +0100 Subject: [PATCH] Fix dev.sh when homebrew is missing --- dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 dev.sh diff --git a/dev.sh b/dev.sh old mode 100644 new mode 100755 index ca08299..fcce219 --- a/dev.sh +++ b/dev.sh @@ -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