From 5776f67afddba273f94b56f38a131bc92f1cea62 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 13 Nov 2025 10:17:51 +0100 Subject: [PATCH] quickfix broken setup_java --- misc/tools.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 4fed42198..a11afb2a1 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2788,7 +2788,7 @@ function setup_java() { # Validate INSTALLED_VERSION is not empty if matched local JDK_COUNT=0 - JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk") + JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk" || true) if [[ -z "$INSTALLED_VERSION" && "${JDK_COUNT:-0}" -gt 0 ]]; then msg_warn "Found Temurin JDK but cannot determine version" INSTALLED_VERSION="0"