We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c717c3 commit 5776f67Copy full SHA for 5776f67
misc/tools.func
@@ -2788,7 +2788,7 @@ function setup_java() {
2788
2789
# Validate INSTALLED_VERSION is not empty if matched
2790
local JDK_COUNT=0
2791
- JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk")
+ JDK_COUNT=$(dpkg -l 2>/dev/null | grep -c "temurin-.*-jdk" || true)
2792
if [[ -z "$INSTALLED_VERSION" && "${JDK_COUNT:-0}" -gt 0 ]]; then
2793
msg_warn "Found Temurin JDK but cannot determine version"
2794
INSTALLED_VERSION="0"
0 commit comments