Skip to content

Commit 94d7659

Browse files
committed
Require JAVA_HOME be set
1 parent aa4cbf6 commit 94d7659

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev/create-release/release-build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ if [ -z "$SPARK_VERSION" ]; then
9696
fi
9797

9898
# Verify we have the right java version set
99+
if [ -z "$JAVA_HOME" ]; then
100+
echo "Please set JAVA_HOME."
101+
exit 1
102+
fi
103+
99104
java_version=$("${JAVA_HOME}"/bin/javac -version 2>&1 | cut -d " " -f 2)
100105

101106
if [[ ! $SPARK_VERSION < "2.2." ]]; then

0 commit comments

Comments
 (0)