Skip to content

Commit 82a7114

Browse files
committed
Extract java8 binary to the correct location
Fixes gh-15948
1 parent ddfcc1e commit 82a7114

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

ci/images/setup.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,10 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c
1616
# JAVA
1717
###########################################################
1818
JDK_URL=$( ./get-jdk-url.sh $1 )
19-
case "$1" in
20-
java8)
21-
COMPONENTS=2
22-
;;
23-
java11)
24-
COMPONENTS=1
25-
;;
26-
*)
27-
echo $"Unknown java version"
28-
exit 1
29-
esac
19+
3020
mkdir -p /opt/openjdk
3121
cd /opt/openjdk
32-
curl -L ${JDK_URL} | tar zx --strip-components=${COMPONENTS}
22+
curl -L ${JDK_URL} | tar zx --strip-components=1
3323
test -f /opt/openjdk/bin/java
3424

3525

0 commit comments

Comments
 (0)