From 2470c52cf6fd1002e7e916b7ca3a3925841c50ad Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Thu, 4 Aug 2022 13:06:48 -0400 Subject: [PATCH] pentoo-updater: skip java stuff when no java --- scripts/pentoo-updater.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index 21e60b929..9b1e95e8e 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -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