From 9470278e873ff37d2e5c5e7e15649301d0395bd5 Mon Sep 17 00:00:00 2001 From: Cristian Ionescu-Idbohrn Date: Wed, 8 Feb 2017 18:03:22 +0100 Subject: Use `command' (shell builtin and POSIX) instead The `which' command is a fork and possible not standard in various distributions, or builtin in certain (odd)? shells, like `zsh'. Signed-off-by: Cristian Ionescu-Idbohrn Signed-off-by: Dirk Hohndel --- packaging/android/android-build-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging/android') diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh index cb98fc9ef..b111e2939 100644 --- a/packaging/android/android-build-wrapper.sh +++ b/packaging/android/android-build-wrapper.sh @@ -40,7 +40,7 @@ fi # make sure we have the required commands installed MISSING="" for i in git cmake autoconf libtool java ant wget unzip; do - which $i > /dev/null 2>&1 || + command -v $i >/dev/null || if [ "$i" = "libtool" ] ; then MISSING="${MISSING}libtool-bin " elif [ "$i" = "java" ] ; then -- cgit v1.2.3-70-g09d2