Merge pull request #308 from esamson/master

Use exec to launch when not in cygwin
This commit is contained in:
eugene yokota 2019-11-20 21:49:36 +02:00 committed by GitHub
commit aa6ce25a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -118,9 +118,13 @@ execRunner () {
echo "" echo ""
} }
# This used to be exec, but we loose the ability to re-hook stty then if [[ "$CYGWIN_FLAG" == "true" ]]; then
# for cygwin... Maybe we should flag the feature here... # In cygwin we loose the ability to re-hook stty if exec is used
"$@" # https://github.com/sbt/sbt-launcher-package/issues/53
"$@"
else
exec "$@"
fi
} }
addJava () { addJava () {