mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Fixed runnodes when JAVA_HOME is not set.
This commit is contained in:
parent
4a9f5cafc1
commit
74ea6ab0df
@ -27,11 +27,13 @@ if which osascript >/dev/null; then
|
||||
end tell"
|
||||
osascript -e "$script"
|
||||
else
|
||||
# Some other UNIX, probably Linux
|
||||
# Some other UNIX, probably Linux (does not support msys or cygwin)
|
||||
# TODO: msys and cygwin support
|
||||
#
|
||||
# This next line is safe even if JAVA_HOME is unset. If it is set, it means that java overrides the
|
||||
# default system java, which is what we want.
|
||||
export PATH=$JAVA_HOME/bin:$PATH
|
||||
# If it is set, it means that java overrides the default system java, which is what we want.
|
||||
if [ -n "${JAVA_HOME-}" ]; then
|
||||
export PATH="$JAVA_HOME/bin:$PATH"
|
||||
fi
|
||||
for dir in `ls`; do
|
||||
if [ -d $dir ]; then
|
||||
pushd $dir >/dev/null
|
||||
@ -39,4 +41,4 @@ else
|
||||
popd >/dev/null
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user