#2119 - enforce Java6 for releases
This commit is contained in:
parent
2b69f67777
commit
edc0c0d888
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ fi
|
|||
declare -r version=$1
|
||||
declare -r publish_path="${release_server}:${release_path}"
|
||||
|
||||
[[ `java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \" | awk '{split($0, array, ".")} END{print array[2]}'` -eq 6 ]] || fail "Java version is not 1.6"
|
||||
|
||||
# check for a git command
|
||||
type -P git &> /dev/null || fail "git command not found"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue