1 THIS_JRE
='java-11-openjdk'
4 if [ ! -x /usr
/bin
/java
]; then
5 /usr
/bin
/archlinux-java
unset
8 /usr
/bin
/archlinux-java get
13 default
=$
(fix_default
)
16 /usr
/bin
/archlinux-java
set ${THIS_JRE}
22 echo "Default Java environment is already set to '${default}'"
23 echo "See 'archlinux-java help' to change it"
27 if [ ! -f /etc
/ssl
/certs
/java
/cacerts
]; then
28 /usr
/bin
/update-ca-trust
33 if [ -z "$(fix_default)" ]; then
34 /usr
/bin
/archlinux-java
set ${THIS_JRE}
37 if [ ! -f /etc
/ssl
/certs
/java
/cacerts
]; then
38 /usr
/bin
/update-ca-trust
43 default
=$
(fix_default
)
44 if [ "x${default}" = "x${THIS_JRE}" ]; then
45 /usr
/bin
/archlinux-java
unset
46 echo "No Java environment is set as default anymore"