]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - android/gradlew
Bump IrrlichtMt version in CI
[dragonfireclient.git] / android / gradlew
index 83f2acfdc319a24e8766cca78f32474ad7a22dd6..25e0c114864eb3e774bb17895759a17d4aba18c3 100755 (executable)
@@ -98,7 +98,7 @@ location of your Java installation."
     fi
 else
     JAVACMD="java"
-    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+    command -v java >/dev/null || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
 
 Please set the JAVA_HOME variable in your environment to match the
 location of your Java installation."