We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce4f251 commit e49f6c8Copy full SHA for e49f6c8
find_java_libdir.sh
@@ -23,14 +23,14 @@ main () {
23
fi
24
25
local jre_dir
26
- if [[ "${java_version}" =~ (6|7|8) && "${os}" != "zos" ]]; then
+ if [[ "${java_version}" =~ ^(6|7|8)$ && "${os}" != "zos" ]]; then
27
jre_dir="${java_home}/jre/lib"
28
else
29
jre_dir="${java_home}/lib"
30
31
32
local lib_dir=""
33
- if [[ "${os}" == "linux" && ! "${java_version}" =~ (6|7|8) ]]; then
+ if [[ "${os}" == "linux" && ! "${java_version}" =~ ^(6|7|8)$ ]]; then
34
# no arch on JDK 9+
35
lib_dir="${jre_dir}/server"
36
elif [[ "${os}" == "linux" && "${target_arch}" == "arm" ]]; then
0 commit comments