aboutsummaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2023-12-04 08:18:02 +0900
committerGitHub <noreply@github.com>2023-12-04 00:18:02 +0100
commitdebb0740d34e784ae88f9ff9f349c786e11bdf02 (patch)
tree2e567d72b3e100ab31a7a1a20261831a93705763 /gradlew
parent9a81b927772b9d62db8b672720978ed67eb2460f (diff)
downloadGT5-Unofficial-debb0740d34e784ae88f9ff9f349c786e11bdf02.tar.gz
GT5-Unofficial-debb0740d34e784ae88f9ff9f349c786e11bdf02.tar.bz2
GT5-Unofficial-debb0740d34e784ae88f9ff9f349c786e11bdf02.zip
Migrate to new RecipeMap (#24)
Requires https://github.com/GTNewHorizons/GT5-Unofficial/pull/2345 --------- Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew5
1 files changed, 4 insertions, 1 deletions
diff --git a/gradlew b/gradlew
index aeb74cbb43..fcb6fca147 100755
--- a/gradlew
+++ b/gradlew
@@ -130,10 +130,13 @@ 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.
+ if ! command -v java >/dev/null 2>&1
+ then
+ 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."
+ fi
fi
# Increase the maximum file descriptors if we can.