From 6fecb00f91288a32cf84d0f25ed52f4e21136019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Antonsson?= Date: Tue, 4 Mar 2014 11:13:43 +0100 Subject: [PATCH] =pro Fixed release script Java version check --- project/scripts/release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/scripts/release b/project/scripts/release index af6abcfe85..bb31559a66 100755 --- a/project/scripts/release +++ b/project/scripts/release @@ -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"