aboutsummaryrefslogtreecommitdiff
path: root/sbt
diff options
context:
space:
mode:
authorJey Kottalam <jey@kottalam.net>2014-11-10 12:37:56 -0800
committerPatrick Wendell <pwendell@gmail.com>2014-11-10 12:38:46 -0800
commit7917f27a3944e1abb9c85e17dba14adc35ef1ff9 (patch)
treec80160bfa9e74d72b9cce2e3edf5a0c2d7b074b8 /sbt
parentca3fe8c127d1153fd575c44b950f7620e5db8737 (diff)
downloadspark-7917f27a3944e1abb9c85e17dba14adc35ef1ff9.tar.gz
spark-7917f27a3944e1abb9c85e17dba14adc35ef1ff9.tar.bz2
spark-7917f27a3944e1abb9c85e17dba14adc35ef1ff9.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" (cherry picked from commit c5db8e2c07e442654f3d368608108e714e080184) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
Diffstat (limited to 'sbt')
-rwxr-xr-xsbt/sbt-launch-lib.bash3
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
}