Replace which with command -v

as well as neutrinolabs/xorgxrdp#204.

Reported by: @drwilly
This commit is contained in:
Koichiro IWAO 2021-12-01 16:58:18 +09:00
parent 3b24ecdedf
commit a3d8761e20
No known key found for this signature in database
GPG Key ID: 03993B4065E7193B

View File

@ -1,27 +1,27 @@
#!/bin/sh
which autoconf
command -v autoconf
if ! test $? -eq 0
then
echo "error, install autoconf"
exit 1
fi
which automake
command -v automake
if ! test $? -eq 0
then
echo "error, install automake"
exit 1
fi
which libtool || which libtoolize
command -v libtool || command -v libtoolize
if ! test $? -eq 0
then
echo "error, install libtool"
exit 1
fi
which pkg-config
command -v pkg-config
if ! test $? -eq 0
then
echo "error, install pkg-config"