Michael Blow has submitted this change and it was merged.

Change subject: [NO ISSUE][OTH] Fix sample cluster version check for latest 
Java 10
......................................................................


[NO ISSUE][OTH] Fix sample cluster version check for latest Java 10

Change-Id: I51b93524d3ea1d342d48851d97ab21a2a9cb6720
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2904
Sonar-Qube: Jenkins <[email protected]>
Reviewed-by: Ian Maxon <[email protected]>
Tested-by: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
---
M asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins: Verified; No violations found; Verified
  Ian Maxon: Looks good to me, approved



diff --git 
a/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh 
b/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh
index 944351d..51d25cb 100755
--- a/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh
+++ b/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh
@@ -39,7 +39,7 @@
   export JAVA_HOME
 fi
 
-export JAVA_VERSION=$(java -version 2>&1 | head -1 | awk '{ print $NF }' | tr 
-d '"')
+export JAVA_VERSION=$(java -version 2>&1 | head -1 | awk '{ print $3 }' | tr 
-d '"')
 case $JAVA_VERSION in
   1.8*|1.9*|10*|11*)
     ;;

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/2904
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I51b93524d3ea1d342d48851d97ab21a2a9cb6720
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: release-0.9.4-pre-rc
Gerrit-Owner: Michael Blow <[email protected]>
Gerrit-Reviewer: Ian Maxon <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Michael Blow <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>

Reply via email to