From b8d555a1aebff7e8e651a39ba324d89ac0894c9f Mon Sep 17 00:00:00 2001
From: balaskoa <Jeno.Balasko@ericsson.com>
Date: Sat, 18 Jul 2020 12:44:46 +0200
Subject: [PATCH] TITAN_Executor_API_test updated to be conform to the newer
 jdks

Signed-off-by: balaskoa <Jeno.Balasko@ericsson.com>
Change-Id: I86795bd00a85f201699e07efe4027a35290b55e2
---
 .../TITAN_Executor_API_test/build_and_run_test.sh               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh b/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
index 0d144534f..f7cf4aa17 100755
--- a/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
+++ b/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
@@ -43,7 +43,7 @@ if [[ "$_java" ]]; then
 fi
 
 # check java version (>=1.7) in another way
-[ $(java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') -ge 17 ] && echo "version is at least 1.7, OK" || { echo "version is less than 1.7, NOT OK, exiting"; exit 1; }
+[ $(java -version 2>&1 | sed 's/.* version "\(.*\)\.\(.*\)\..*".*/\1\2/; 1q') -ge 17 ] && echo "version is at least 1.7, OK" || { echo "version is less than 1.7, NOT OK, exiting"; exit 1; }
 
 # checks if file exists, exits if not
 # @param $1 file full path
-- 
GitLab