1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Replace uses of which(1) with command -v

This commit is contained in:
sfan5
2021-10-25 21:56:25 +02:00
committed by rubenwardy
parent 4114e3047b
commit ea1396f856
4 changed files with 8 additions and 8 deletions

2
android/gradlew vendored
View File

@@ -98,7 +98,7 @@ 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.
command -v java >/dev/null || 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."