2018-12-11 11:20:11 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
java8)
|
2023-05-11 00:53:20 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/8u372+7/bellsoft-jdk8u372+7-linux-amd64.tar.gz"
|
2018-12-11 11:20:11 +08:00
|
|
|
;;
|
|
|
|
java11)
|
2023-05-11 00:53:20 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.19+7/bellsoft-jdk11.0.19+7-linux-amd64.tar.gz"
|
2018-12-11 11:20:11 +08:00
|
|
|
;;
|
2021-07-16 19:52:57 +08:00
|
|
|
java17)
|
2023-05-11 00:53:20 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.7+7/bellsoft-jdk17.0.7+7-linux-amd64.tar.gz"
|
2021-07-16 19:52:57 +08:00
|
|
|
;;
|
2022-03-09 17:14:23 +08:00
|
|
|
java18)
|
2023-05-11 00:53:20 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/18.0.2.1+1/bellsoft-jdk18.0.2.1+1-linux-amd64.tar.gz"
|
2022-03-09 17:14:23 +08:00
|
|
|
;;
|
2023-05-11 00:53:20 +08:00
|
|
|
*)
|
2018-12-11 11:20:11 +08:00
|
|
|
echo $"Unknown java version"
|
|
|
|
exit 1
|
2019-06-05 05:21:09 +08:00
|
|
|
esac
|