diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-04-14 08:11:23 -0700 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-04-14 08:11:23 -0700 |
commit | c1c219e263cea97b3a1fdf94109b244ab1a65ea4 (patch) | |
tree | 8a4edc7f9eae361c212e4b9840aff8c46b52dbd9 | |
parent | c35d530bcfea2e1764863eb9f47a794d8fa001af (diff) | |
parent | 6f688608915a82e6dcf4a27dc92e4b25a3570fa4 (diff) | |
download | spark-c1c219e263cea97b3a1fdf94109b244ab1a65ea4.tar.gz spark-c1c219e263cea97b3a1fdf94109b244ab1a65ea4.tar.bz2 spark-c1c219e263cea97b3a1fdf94109b244ab1a65ea4.zip |
Merge pull request #564 from maspotts/master
Allow latest scala in PATH, with SCALA_HOME as override (instead of vice-versa)
-rwxr-xr-x | run | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -47,14 +47,15 @@ case "$1" in esac if [ "$SPARK_LAUNCH_WITH_SCALA" == "1" ]; then - if [ `command -v scala` ]; then - RUNNER="scala" + if [ "$SCALA_HOME" ]; then + RUNNER="${SCALA_HOME}/bin/scala" else - if [ -z "$SCALA_HOME" ]; then - echo "SCALA_HOME is not set" >&2 + if [ `command -v scala` ]; then + RUNNER="scala" + else + echo "SCALA_HOME is not set and scala is not in PATH" >&2 exit 1 fi - RUNNER="${SCALA_HOME}/bin/scala" fi else if [ `command -v java` ]; then |