File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,20 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c
19
19
case " $1 " in
20
20
java8)
21
21
JDK_URL=https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_linux_hotspot_8u192b12.tar.gz
22
- ;;
23
- java9)
24
- JDK_URL=https://github.com/AdoptOpenJDK/openjdk9-binaries/releases/download/jdk-9.0.4%2B11/OpenJDK9U-jdk_x64_linux_hotspot_9.0.4_11.tar.gz
25
- ;;
26
- java10)
27
- JDK_URL=https://github.com/AdoptOpenJDK/openjdk10-releases/releases/download/jdk-10.0.2%2B13/OpenJDK10_x64_Linux_jdk-10.0.2.13.tar.gz
22
+ COMPONENTS=2
28
23
;;
29
24
java11)
30
25
JDK_URL=https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz
26
+ COMPONENTS=1
31
27
;;
32
28
* )
33
29
echo $" Unknown java version"
34
30
exit 1
35
31
esac
36
32
mkdir -p /opt/openjdk
37
33
cd /opt/openjdk
38
- curl -L ${JDK_URL} | tar zx --strip-components=2
34
+ curl -L ${JDK_URL} | tar zx --strip-components=${COMPONENTS}
35
+ test -f /opt/openjdk/bin/java
39
36
40
37
41
38
# ##########################################################
You can’t perform that action at this time.
0 commit comments