summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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