bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mackror...@apache.org
Subject git commit: BIGTOP-1071. bigtop-detect-javahome should select the first possible candidate in the list (contributed by Masatake Iwasaki)
Date Mon, 16 Sep 2013 23:26:23 GMT
Updated Branches:
  refs/heads/master 3b416f665 -> 5f8007587


BIGTOP-1071. bigtop-detect-javahome should select the first possible candidate in the list
(contributed by Masatake Iwasaki)


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/5f800758
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/5f800758
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/5f800758

Branch: refs/heads/master
Commit: 5f8007587f6b745ebfc049603da0aa2e4966e477
Parents: 3b416f6
Author: Sean Mackrory <mackrorysd@gmail.com>
Authored: Mon Sep 16 16:25:39 2013 -0700
Committer: Sean Mackrory <mackrorysd@gmail.com>
Committed: Mon Sep 16 16:25:39 2013 -0700

----------------------------------------------------------------------
 bigtop-packages/src/common/bigtop-utils/bigtop-detect-javahome | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/5f800758/bigtop-packages/src/common/bigtop-utils/bigtop-detect-javahome
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/bigtop-utils/bigtop-detect-javahome b/bigtop-packages/src/common/bigtop-utils/bigtop-detect-javahome
index 2fe4683..f33b36a 100644
--- a/bigtop-packages/src/common/bigtop-utils/bigtop-detect-javahome
+++ b/bigtop-packages/src/common/bigtop-utils/bigtop-detect-javahome
@@ -49,7 +49,7 @@ if [ -z "$JAVA_HOME" ]; then
       for candidate in `ls -rd $candidate_regex 2>/dev/null`; do
         if [ -e $candidate/bin/java ]; then
           export JAVA_HOME=$candidate
-          exit
+          break 2
         fi
       done
   done


Mime
View raw message