From acfd18e24c77ef42980730d6b3cc642eb189336b Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Sun, 4 Feb 2024 00:00:09 +1300 Subject: [PATCH] build: prefer "command -v" to "which" --- tools/build_android_libraries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_android_libraries.sh b/tools/build_android_libraries.sh index 82f413e1e..825822250 100755 --- a/tools/build_android_libraries.sh +++ b/tools/build_android_libraries.sh @@ -11,7 +11,7 @@ if [ ! -f "src/secp256k1/Makefile.am" ]; then fi if [ -z "$ANDROID_NDK" ]; then - export ANDROID_NDK=$(dirname `which ndk-build 2>/dev/null`) + export ANDROID_NDK=$(dirname `command -v ndk-build 2>/dev/null`) fi echo ${ANDROID_NDK:?} if [ -z "$JAVA_HOME" ]; then