Skip to content

Commit 329ccf3

Browse files
QPod0QPod0
QPod0
authored and
QPod0
committed
Update script-setup.sh
1 parent ac1ef21 commit 329ccf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker_atom/work/script-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ setup_nvtop() {
8585

8686

8787
setup_java_base() {
88-
VERSION_JDK=11 \
88+
VERSION_JDK=$1; shift 1; VERSION_JDK=${VERSION_JDK:-"11"} \
8989
&& URL_OPENJDK=$(curl -sL https://jdk.java.net/archive/ | grep 'linux-x64_bin.tar' | grep -v sha256 | sed -n 's/.*href="\([^"]*\).*/\1/p' | grep "jdk${VERSION_JDK}" | head -n 1) \
9090
&& echo "Installing JDK from: ${URL_OPENJDK}" \
9191
&& install_tar_gz "${URL_OPENJDK}" && mv /opt/jdk-* /opt/jdk \

0 commit comments

Comments
 (0)