Skip to content
Snippets Groups Projects
Commit c5db8e2c authored by Jey Kottalam's avatar Jey Kottalam Committed by Patrick Wendell
Browse files

[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"
parent 0340c56a
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment