mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Two runnodes fixes for MacOS X:
1) Support users who run non-bash shells 2) Use /usr/bin/libexec to pick the right Java version, as currently Corda does not start on Java 9
This commit is contained in:
parent
b5c319aeca
commit
7247e7280f
@ -16,10 +16,11 @@ if which osascript >/dev/null; then
|
||||
rootdir=`pwd`
|
||||
for dir in `ls`; do
|
||||
if [ -d $dir ]; then
|
||||
cmd="bash -c 'cd $rootdir/$dir; /usr/libexec/java_home -v 1.8 --exec java -jar JAR_NAME && exit'"
|
||||
script="$script
|
||||
tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down
|
||||
delay 0.5
|
||||
do script \"cd $rootdir/$dir; java -jar JAR_NAME && exit\" in window 1"
|
||||
do script \"$cmd\" in window 1"
|
||||
first=false
|
||||
fi
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user