Skip to content

Commit

Permalink
build: prefer "command -v" to "which"
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Feb 3, 2024
1 parent 09f2624 commit acfd18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build_android_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acfd18e

Please sign in to comment.