mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
pentoo-updater: skip java stuff when no java
This commit is contained in:
parent
99f940919f
commit
2470c52cf6
1 changed files with 5 additions and 0 deletions
|
|
@ -83,6 +83,11 @@ setup_env() {
|
|||
}
|
||||
|
||||
set_java() {
|
||||
have_java=$(portageq match / 'app-eselect/eselect-java')
|
||||
if [ -z "${have_java}" ]; then
|
||||
printf "System doesn't have java, skipping java config.\n"
|
||||
return 1
|
||||
fi
|
||||
java_system=$(eselect java-vm show system | tail -n 1 | tr -d " ")
|
||||
if [ "${java_system/11/}" != "${java_system}" ]; then
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue