From d1be9120269296fef36964b6788addacf4d7be71 Mon Sep 17 00:00:00 2001 From: "lvfei.lv" Date: Mon, 27 Nov 2023 16:22:20 +0800 Subject: [PATCH] fix dragonwell21 version string --- sbin/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sbin/build.sh b/sbin/build.sh index ee8dcc5f2b..f6636c3c40 100755 --- a/sbin/build.sh +++ b/sbin/build.sh @@ -449,8 +449,9 @@ configureVersionStringParameter() { addConfigureArgIfValueIsNotEmpty "--with-version-patch=" "${dragonwellPatch}" fi else - local version_string=${openJdkVersion%.*} - version_string=$(echo ${version_string%.*} | cut -d '-' -f 2) + #local version_string=${openJdkVersion%.*} + #version_string=$(echo ${version_string%.*} | cut -d '-' -f 2) + local version_string=$(echo ${openJdkVersion/+/.} | cut -d ' ' -f 2) addConfigureArgIfValueIsNotEmpty "--with-version-string=" "\"${version_string}\"" fi fi