=pro Fixed release script Java version check

This commit is contained in:
Björn Antonsson 2014-03-04 11:13:43 +01:00
parent e2b73769f4
commit 6fecb00f91

View file

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