aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorMariell Hoversholm <[email protected]>2021-03-06 14:50:24 +0100
committerGitHub <[email protected]>2021-03-06 13:50:24 +0000
commitbe7cde2c76318b6ea8b901dd5b573574f66781d5 (patch)
treed50ed8047b81ee2b352ef0d892ade139a775cd29 /scripts
parent5b20df6bf05752da96c5a78c8e452d757a4ce306 (diff)
downloadPaper-be7cde2c76318b6ea8b901dd5b573574f66781d5.tar.gz
Paper-be7cde2c76318b6ea8b901dd5b573574f66781d5.zip
[CI-SKIP] Always check PATH for JDK (#5315)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/requireDeps.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/requireDeps.sh b/scripts/requireDeps.sh
index ac3f843fd6..8437accfaa 100755
--- a/scripts/requireDeps.sh
+++ b/scripts/requireDeps.sh
@@ -14,11 +14,8 @@ if [ -z "${1:-}" ]; then
_is_dep_available mvn
_is_dep_available curl
- # Ensure we don't have a JAVA_HOME set first.
- # Maven should work fine without the JAVA_HOME var as long as the JDK is on the PATH.
- if [ -z "${JAVA_HOME:-}" ]; then
- _is_dep_available javac "was not found; you can download the JDK from https://adoptopenjdk.net/ or via your package manager"
- fi
+ _is_dep_available javac "was not found; you can download the JDK from https://adoptopenjdk.net/ or via your package manager"
+ _is_dep_available jar "was not found; you can download the JDK from https://adoptopenjdk.net/ or via your package manager"
else
# Require all dependencies provided.
for dep in $@; do