This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new e6cf8b5  [KARAF-5729] Karaf won't start on Solaris 11 and AIX 7.2
e6cf8b5 is described below

commit e6cf8b5c23704ab2d9a0cbb761bc4c648e38aa45
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Apr 27 13:41:42 2018 +0200

    [KARAF-5729] Karaf won't start on Solaris 11 and AIX 7.2
---
 assemblies/features/base/src/main/filtered-resources/resources/bin/inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/assemblies/features/base/src/main/filtered-resources/resources/bin/inc 
b/assemblies/features/base/src/main/filtered-resources/resources/bin/inc
index 58c3ce3..be5f240 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/inc
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/inc
@@ -208,7 +208,7 @@ detectJVM() {
 }
 
 checkJvmVersion() {
-    VERSION=$("${JAVA}" -version 2>&1 | awk -F '"' '/version/ {print $2}' | 
sed -e 's/_.*//g; s/^1\.//g ; s/\..*//g; s/-.*//g;')
+    VERSION=$("${JAVA}" -version 2>&1 | grep -i version | sed 's/.*version 
".*\.\(.*\)\..*"/\1/; 1q')
     if [ "${VERSION}" -lt "8" ]; then
         die "JVM must be greater than 1.8"
     fi

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to