mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
0e7d8993a2
commit
9470278e87
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue