Skip to content

Commit c5db8e2

Browse files
jeypwendell
authored andcommitted
[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 <[email protected]> Closes #3182 from sarutak/SPARK-4312 and squashes the following commits: 24c6677 [Jey Kottalam] bash doesn't have "die"
1 parent 0340c56 commit c5db8e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sbt/sbt-launch-lib.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ require_arg () {
124124
local opt="$2"
125125
local arg="$3"
126126
if [[ -z "$arg" ]] || [[ "${arg:0:1}" == "-" ]]; then
127-
die "$opt requires <$type> argument"
127+
echo "$opt requires <$type> argument" 1>&2
128+
exit 1
128129
fi
129130
}
130131

0 commit comments

Comments
 (0)