Skip to content

Commit 55cfb61

Browse files
committed
bash doesn't have "die"
1 parent 2f9b2bd commit 55cfb61

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)