summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarbash <dor.garbash@gmail.com>2014-12-22 11:08:49 +0200
committergarbash <dor.garbash@gmail.com>2014-12-22 11:08:49 +0200
commit1b2857b853d1e6631f99e5c5f386c4395a116e12 (patch)
tree3290cb76be63b7e4ca37aeea8e524aabca30c822
parent89ce2bbe393669dd4c35c39c2cdc60d13f8a0ec0 (diff)
run-local.sh for Mac (Darwin)
-rwxr-xr-xrun-local.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/run-local.sh b/run-local.sh
index ca226076..bf31571b 100755
--- a/run-local.sh
+++ b/run-local.sh
@@ -1,5 +1,10 @@
#!/bin/sh
-if [ `(netstat -ltnop 2>/dev/null | grep 7474 | wc -l)` == 0 ]; then
+if [ `uname` == "Darwin" ]; then
+ neo4j_count=`netstat -na -ptcp 2>/dev/null | grep 7474 | wc -l`
+else
+ neo4j_count=`netstat -ltnop 2>/dev/null | grep 7474 | wc -l`
+fi
+if [ $neo4j_count == "0" ]; then
echo run neo4j please
exit 0
fi