Skip to content

Commit

Permalink
[SPARK-4312] bash doesn't have "die"
Browse files Browse the repository at this point in the history
sbt-launch-lib.bash includes `die` command but it's not valid command for Linux, MacOS X or Windows.

Closes apache#2898

Author: Jey Kottalam <[email protected]>

Closes apache#3182 from sarutak/SPARK-4312 and squashes the following commits:

24c6677 [Jey Kottalam] bash doesn't have "die"
  • Loading branch information
jey authored and pwendell committed Nov 10, 2014
1 parent 0340c56 commit c5db8e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbt/sbt-launch-lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c5db8e2

Please sign in to comment.