mirror of https://github.com/sbt/sbt.git
Quote arguments and $JAVA_CMD
This commit is contained in:
parent
1f600d049b
commit
edecd0f1bd
|
|
@ -19,9 +19,9 @@ fi
|
||||||
if [ "_$TERM" = "_xterm" ]; then
|
if [ "_$TERM" = "_xterm" ]; then
|
||||||
# Let the terminal handle ANSI sequences
|
# Let the terminal handle ANSI sequences
|
||||||
stty -icanon min 1 -echo > /dev/null 2>&1
|
stty -icanon min 1 -echo > /dev/null 2>&1
|
||||||
$JAVA_CMD $JAVA_OPTS -Djline.terminal=jline.UnixTerminal -jar "$WDIR/sbt-launch.jar" $@
|
"$JAVA_CMD" $JAVA_OPTS -Djline.terminal=jline.UnixTerminal -jar "$WDIR/sbt-launch.jar" "$@"
|
||||||
stty icanon echo > /dev/null 2>&1
|
stty icanon echo > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
# Use Jansi to intercept ANSI sequences
|
# Use Jansi to intercept ANSI sequences
|
||||||
$JAVA_CMD $JAVA_OPTS -Dsbt.log.format=true -cp "$WDIR/jansi.jar;$WDIR/sbt-launch.jar;$WDIR/classes" SbtJansiLaunch $@
|
"$JAVA_CMD" $JAVA_OPTS -Dsbt.log.format=true -cp "$WDIR/jansi.jar;$WDIR/sbt-launch.jar;$WDIR/classes" SbtJansiLaunch "$@"
|
||||||
fi
|
fi
|
||||||
Loading…
Reference in New Issue