Skip to content

Commit 5776f67

Browse files
committed
quickfix broken setup_java
1 parent 4c717c3 commit 5776f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/tools.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ function setup_java() {
27882788

27892789
# Validate INSTALLED_VERSION is not empty if matched
27902790
local JDK_COUNT=0
2791-
JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk")
2791+
JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk" || true)
27922792
if [[ -z "$INSTALLED_VERSION" && "${JDK_COUNT:-0}" -gt 0 ]]; then
27932793
msg_warn "Found Temurin JDK but cannot determine version"
27942794
INSTALLED_VERSION="0"

0 commit comments

Comments
 (0)