Skip to content

Commit 92add8e

Browse files
committed
Fix Java version detection patterns
1 parent 710109e commit 92add8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build-android-port.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ check_java_home() {
5959
validate_workspace() {
6060
local missing=0
6161

62-
if ! check_java_home "JAVA_HOME" "${JAVA_HOME:-}" '1\\.8'; then
62+
if ! check_java_home "JAVA_HOME" "${JAVA_HOME:-}" '1\.8'; then
6363
missing=1
6464
fi
6565

66-
if ! check_java_home "JAVA_HOME_17" "${JAVA_HOME_17:-}" '17\\.'; then
66+
if ! check_java_home "JAVA_HOME_17" "${JAVA_HOME_17:-}" '17\.'; then
6767
missing=1
6868
fi
6969

0 commit comments

Comments
 (0)