From 82a711403df1fbaf915de81b994f0b05a7fed714 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Wed, 13 Feb 2019 16:52:46 -0800 Subject: [PATCH] Extract java8 binary to the correct location Fixes gh-15948 --- ci/images/setup.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ci/images/setup.sh b/ci/images/setup.sh index db43070cf5..50853288d6 100755 --- a/ci/images/setup.sh +++ b/ci/images/setup.sh @@ -16,20 +16,10 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c # JAVA ########################################################### JDK_URL=$( ./get-jdk-url.sh $1 ) -case "$1" in - java8) - COMPONENTS=2 - ;; - java11) - COMPONENTS=1 - ;; - *) - echo $"Unknown java version" - exit 1 -esac + mkdir -p /opt/openjdk cd /opt/openjdk -curl -L ${JDK_URL} | tar zx --strip-components=${COMPONENTS} +curl -L ${JDK_URL} | tar zx --strip-components=1 test -f /opt/openjdk/bin/java