Fix stderr redirect shell syntax

To prevent the following error (MacOS X 10.7):

./sbt: command substitution: line 222: syntax error near unexpected token `&'
./sbt: command substitution: line 222: `java -version |& grep version'
This commit is contained in:
Bart Schuller 2012-01-24 10:10:39 +01:00
parent 084480c57b
commit dbd24d1358
1 changed files with 1 additions and 1 deletions

2
sbt
View File

@ -250,7 +250,7 @@ Usage: $script_name [options]
-scala-home <path> use the scala build at the specified directory
-scala-version <version> use the specified version of scala
# java version (default: java from PATH, currently $(java -version |& grep version))
# java version (default: java from PATH, currently $(java -version 2>&1 | grep version))
-java-home <path> alternate JAVA_HOME
# jvm options and output control