Commit 82a71140 authored by Madhura Bhave's avatar Madhura Bhave

Extract java8 binary to the correct location

Fixes gh-15948
parent ddfcc1e2
...@@ -16,20 +16,10 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c ...@@ -16,20 +16,10 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c
# JAVA # JAVA
########################################################### ###########################################################
JDK_URL=$( ./get-jdk-url.sh $1 ) 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 mkdir -p /opt/openjdk
cd /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 test -f /opt/openjdk/bin/java
......
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