Skip to content

Commit

Permalink
Update macOS scripts to enable running in new terminal session
Browse files Browse the repository at this point in the history
  • Loading branch information
rlktradewright committed Nov 14, 2018
1 parent 84c7b50 commit 43abba7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion resources/gatewaystartmacos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ export APP
if [[ "$1" == "-inline" ]]; then
exec "${IBC_PATH}/scripts/displaybannerandlaunch.sh"
else
# run in a new terminal session.
# NB: "tell app Terminal" doesn't pass the current
# environment, so we just run this script again
# inside a new terminal session with the -inline argument
osascript -e 'tell app "Terminal"
do script "${IBC_PATH}/scripts/displaybannerandlaunch.sh"
do script "/opt/ibc/gatewaystartmacos.sh -inline"
end tell'
fi
8 changes: 6 additions & 2 deletions resources/twsstartmacos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ export APP
if [[ "$1" == "-inline" ]]; then
exec "${IBC_PATH}/scripts/displaybannerandlaunch.sh"
else
osascript -e 'tell app "Terminal"
do script "${IBC_PATH}/scripts/displaybannerandlaunch.sh"
# run in a new terminal session.
# NB: "tell app Terminal" doesn't pass the current
# environment, so we just run this script again
# inside a new terminal session with the -inline argument
osascript -e 'tell app "Terminal"
do script "/opt/ibc/twsstartmacos.sh -inline"
end tell'
fi

0 comments on commit 43abba7

Please sign in to comment.