From 7917f27a3944e1abb9c85e17dba14adc35ef1ff9 Mon Sep 17 00:00:00 2001 From: Jey Kottalam Date: Mon, 10 Nov 2014 12:37:56 -0800 Subject: [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 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 --- sbt/sbt-launch-lib.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3