[PATCH 1/3] Use `command' (shell builtin and POSIX) instead
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Wed Feb 8 09:03:22 PST 2017
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 <cristian.ionescu-idbohrn at axis.com>
---
packaging/android/android-build-wrapper.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh
index cb98fc9e..b111e293 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
--
2.11.0
More information about the subsurface
mailing list