aboutsummaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorAbe Pazos <abe@hamoid.com>2023-10-06 17:26:30 +0200
committerAbe Pazos <abe@hamoid.com>2023-10-06 17:26:30 +0200
commit411b5f5b126e7b252f4673270fe9cf883a47064d (patch)
tree8ba1dd8b8cb5b7183c4f0530a6d856e8ba82025a /gradlew
parent2f2d279e248896a35a11d18d9d77d886c7de84d5 (diff)
downloadart-playground-openrndr-411b5f5b126e7b252f4673270fe9cf883a47064d.tar.gz
art-playground-openrndr-411b5f5b126e7b252f4673270fe9cf883a47064d.zip
Update Gradle and Kotlin
Diffstat (limited to '')
-rwxr-xr-xgradlew8
1 files changed, 6 insertions, 2 deletions
diff --git a/gradlew b/gradlew
index aeb74cb..0adc8e1 100755
--- a/gradlew
+++ b/gradlew
@@ -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.