Skip to content

Commit 9c869b5

Browse files
committed
fixup! Improve error handling using a fail-fast approach
1 parent fbdebc1 commit 9c869b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/startNeo4j.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ else
4242
fi
4343

4444
# Check if Neo4j is stopped (not running) using a temporary NEO4J_HOME environment variable that points to the current installation
45+
set -x
4546
neo4jStatus="$( NEO4J_HOME=${NEO4J_DIR} ${NEO4J_BIN}/neo4j status 2>&1 || true)"
4647
neo4jNotRunning=$(echo "$neo4jStatus" | grep "not running" || true)
4748
if [ -n "${neo4jNotRunning}" ]; then

0 commit comments

Comments
 (0)