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 <[email protected]>
---
 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

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to