summaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2023-07-04 11:31:09 +0200
committerJoffrey Bion <joffrey.bion@gmail.com>2023-07-05 15:59:53 +0200
commit4ecf3969807f19363340457e2b4c5a3fe4e6fcd4 (patch)
treeec449ed5a351d1d8d1572bd9ba8ddc552f53d62e /gradlew
parentUpgrade Spring to 3.1.1 (diff)
downloadseven-wonders-4ecf3969807f19363340457e2b4c5a3fe4e6fcd4.tar.gz
seven-wonders-4ecf3969807f19363340457e2b4c5a3fe4e6fcd4.tar.bz2
seven-wonders-4ecf3969807f19363340457e2b4c5a3fe4e6fcd4.zip
Upgrade Gradle wrapper to 8.2
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.
bgstack15