diff options
author | Jey Kottalam <jey@kottalam.net> | 2014-11-10 12:37:56 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-11-10 12:37:56 -0800 |
commit | c5db8e2c07e442654f3d368608108e714e080184 (patch) | |
tree | fc101935a5f727120b3adad881aaffc6c589285a | |
parent | 0340c56a921d4eb4bc9058e25e926721f8df594c (diff) | |
download | spark-c5db8e2c07e442654f3d368608108e714e080184.tar.gz spark-c5db8e2c07e442654f3d368608108e714e080184.tar.bz2 spark-c5db8e2c07e442654f3d368608108e714e080184.zip |
[SPARK-4312] bash doesn't have "die"
sbt-launch-lib.bash includes `die` command but it's not valid command for Linux, MacOS X or Windows.
Closes #2898
Author: Jey Kottalam <jey@kottalam.net>
Closes #3182 from sarutak/SPARK-4312 and squashes the following commits:
24c6677 [Jey Kottalam] bash doesn't have "die"
-rwxr-xr-x | sbt/sbt-launch-lib.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbt/sbt-launch-lib.bash b/sbt/sbt-launch-lib.bash index 7f05d2ef49..055e206662 100755 --- a/sbt/sbt-launch-lib.bash +++ b/sbt/sbt-launch-lib.bash @@ -124,7 +124,8 @@ require_arg () { local opt="$2" local arg="$3" if [[ -z "$arg" ]] || [[ "${arg:0:1}" == "-" ]]; then - die "$opt requires <$type> argument" + echo "$opt requires <$type> argument" 1>&2 + exit 1 fi } |