summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2017-02-08 18:03:22 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-09 21:31:11 -0800
commit9470278e873ff37d2e5c5e7e15649301d0395bd5 (patch)
tree75a451c5c951c3cd26c8d37d0234c5d5df655ad6 /packaging
parent0e7d8993a2c1a21b08f7d0525bf101ce6fb15fcd (diff)
downloadsubsurface-9470278e873ff37d2e5c5e7e15649301d0395bd5.tar.gz
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 <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/android/android-build-wrapper.sh2
1 files changed, 1 insertions, 1 deletions
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