summaryrefslogtreecommitdiffhomepage
path: root/gradlew
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-08-04 20:12:31 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-08-04 20:20:46 +0530
commit82bcac55fbc1d4554b642e8ff0d1ff1a5182626d (patch)
tree5a9410c076ba5043a9ef0efc9776b153f4145a1d /gradlew
parent04e503c9dbd14210a3cd2eeb395d4e9421d6770d (diff)
gradle: upgrade to 8.2.1
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew5
1 files changed, 4 insertions, 1 deletions
diff --git a/gradlew b/gradlew
index aeb74cbb..fcb6fca1 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.