mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 22:40:21 +01:00
[CI-SKIP] Always check PATH for JDK (#5315)
This commit is contained in:
parent
5bd9ea9bb0
commit
afe9f61c4c
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue