From ea1396f85693ee1f752219d91adcacb32041fc84 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 25 Oct 2021 21:56:25 +0200 Subject: Replace uses of which(1) with command -v --- android/gradlew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android') diff --git a/android/gradlew b/android/gradlew index 83f2acfdc..25e0c1148 100755 --- a/android/gradlew +++ b/android/gradlew @@ -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." -- cgit v1.2.3