From 9eb6a844c0fc39f99438080bb9f2846661f1c7aa Mon Sep 17 00:00:00 2001 From: Maximilian Bosche Date: Thu, 13 Nov 2025 08:43:55 +0000 Subject: [PATCH] possible fix for #9109 (#9110) --- misc/tools.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 0ddc02f32..4fed42198 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" || echo "0") + JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk") if [[ -z "$INSTALLED_VERSION" && "${JDK_COUNT:-0}" -gt 0 ]]; then msg_warn "Found Temurin JDK but cannot determine version" INSTALLED_VERSION="0"