Commit f092c9c1 authored by Mark's avatar Mark

ci: fix set-jdk syntax

parent 099f9936
...@@ -5,7 +5,7 @@ function set_jdk() { ...@@ -5,7 +5,7 @@ function set_jdk() {
fi fi
dir=$1 dir=$1
if [[ -z $dir ]]; then if [[ -z ${dir} ]]; then
dir=${TRAVIS_BUILD_DIR} dir=${TRAVIS_BUILD_DIR}
fi fi
...@@ -23,7 +23,7 @@ function set_jdk() { ...@@ -23,7 +23,7 @@ function set_jdk() {
esac esac
if [[ -z ${version} ]]; then if [[ -z ${version} ]]; then
version=${jenv versions | tail -1 | sed s/*//) version=$(jenv versions | tail -1 | sed s/*//)
fi fi
if [[ -z ${version} ]]; then if [[ -z ${version} ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment