You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/03/21 14:39:52 UTC

[ignite] 02/04: IGNITE-11216 Ignite.sh fails on Mac OS and Linux - Java 11 (#6084)

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

dpavlov pushed a commit to branch ignite-2.7.5
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 47a1c368e48ba759899d0ba9596793387782ff88
Author: Peter Ivanov <mr...@gmail.com>
AuthorDate: Tue Feb 12 13:33:21 2019 +0300

    IGNITE-11216 Ignite.sh fails on Mac OS and Linux - Java 11 (#6084)
    
    (cherry picked from commit 033170d90f6c0618b9d6a3fd997e13a5ec1fff89)
---
 bin/include/functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/include/functions.sh b/bin/include/functions.sh
index 4edf0e6..199fd4e 100755
--- a/bin/include/functions.sh
+++ b/bin/include/functions.sh
@@ -61,7 +61,7 @@ javaMajorVersion() {
 #
 checkJava() {
     # Check JAVA_HOME.
-    if [ "$JAVA_HOME" = "" ]; then
+    if [ "${JAVA_HOME:-}" = "" ]; then
         JAVA=`type -p java`
         RETCODE=$?