Add support for OpenJDK to release script

This commit is contained in:
Martynas Mickevičius 2016-02-02 17:38:35 +02:00
parent 6205718d5e
commit 67a2b21186

View file

@ -170,7 +170,7 @@ fi
declare -r version=$1
declare -r publish_path="${release_server}:${release_path}"
[[ `java -version 2>&1 | grep "java version" | cut -d ' ' -f3 | cut -d '.' -f2` -eq 8 ]] || fail "Java version is not 1.8"
[[ `java -version 2>&1 | grep -E "java version|openjdk version" | cut -d ' ' -f3 | cut -d '.' -f2` -eq 8 ]] || fail "Java version is not 1.8"
# check for a git command
type -P git &> /dev/null || fail "git command not found"