mirror of
https://github.com/corda/corda.git
synced 2025-05-29 05:34:22 +00:00
Minor: couple more usability tweaks to the runnodes script
This commit is contained in:
parent
81d6195a07
commit
010112e44e
@ -4,6 +4,10 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
export CAPSULE_CACHE_DIR=cache
|
export CAPSULE_CACHE_DIR=cache
|
||||||
|
|
||||||
|
# Allow the script to be run from outside the nodes directory.
|
||||||
|
basedir=$( dirname "$0" )
|
||||||
|
cd "$basedir"
|
||||||
|
|
||||||
if which osascript >/dev/null; then
|
if which osascript >/dev/null; then
|
||||||
# MacOS X: open each node in a in new tab.
|
# MacOS X: open each node in a in new tab.
|
||||||
first=true
|
first=true
|
||||||
@ -15,13 +19,12 @@ if which osascript >/dev/null; then
|
|||||||
script="$script
|
script="$script
|
||||||
tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down
|
tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down
|
||||||
delay 0.5
|
delay 0.5
|
||||||
do script \"cd $rootdir/$dir; java -jar JAR_NAME; exit\" in window 1"
|
do script \"cd $rootdir/$dir; java -jar JAR_NAME && exit\" in window 1"
|
||||||
first=false
|
first=false
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
script="$script
|
script="$script
|
||||||
end tell"
|
end tell"
|
||||||
echo "$script"
|
|
||||||
osascript -e "$script"
|
osascript -e "$script"
|
||||||
else
|
else
|
||||||
# Some other UNIX, probably Linux
|
# Some other UNIX, probably Linux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user