Skip to content

Commit d99adea

Browse files
authored
only install experimental 32 bit Adoptium if OH5/Java 21 (#2053)
Signed-off-by: Markus Storm <[email protected]>
1 parent 1c60513 commit d99adea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/java-jre.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ adoptium_fetch_apt() {
4444
if ! cond_redirect apt-get update; then echo "FAILED (update apt lists)"; return 1; fi
4545

4646
# if on 32 bit OS, install unsupported Adoptium 32 bit from OpenEMS community project
47-
if [[ $(getconf LONG_BIT) == 32 ]]; then
47+
if [[ $1 == "21" ]] && [[ $(getconf LONG_BIT) == 32 ]]; then
4848
if ! cond_redirect wget -nv -O "${cachedir}/${cachefile}" "${URL}/${pkgfile}"; then echo "FAILED (download JVM pkg)"; rm -f "${cachedir}/${cachefile}"; return 1; fi
4949
else
5050
if ! cond_redirect dpkg --configure -a --confnew; then echo "FAILED (dpkg)"; return 1; fi

0 commit comments

Comments
 (0)