diff options
| author | Abe Pazos <abe@hamoid.com> | 2023-10-06 17:26:30 +0200 |
|---|---|---|
| committer | Abe Pazos <abe@hamoid.com> | 2023-10-06 17:26:30 +0200 |
| commit | 411b5f5b126e7b252f4673270fe9cf883a47064d (patch) | |
| tree | 8ba1dd8b8cb5b7183c4f0530a6d856e8ba82025a /gradlew | |
| parent | 2f2d279e248896a35a11d18d9d77d886c7de84d5 (diff) | |
| download | art-playground-openrndr-411b5f5b126e7b252f4673270fe9cf883a47064d.tar.gz art-playground-openrndr-411b5f5b126e7b252f4673270fe9cf883a47064d.zip | |
Update Gradle and Kotlin
Diffstat (limited to '')
| -rwxr-xr-x | gradlew | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -83,7 +83,8 @@ done # This is normally unused # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -130,10 +131,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. |
