Skip to content

Commit a3d8761

Browse files
committed
Replace which with command -v
as well as neutrinolabs/xorgxrdp#204. Reported by: @drwilly
1 parent 3b24ecd commit a3d8761

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bootstrap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
#!/bin/sh
22

3-
which autoconf
3+
command -v autoconf
44
if ! test $? -eq 0
55
then
66
echo "error, install autoconf"
77
exit 1
88
fi
99

10-
which automake
10+
command -v automake
1111
if ! test $? -eq 0
1212
then
1313
echo "error, install automake"
1414
exit 1
1515
fi
1616

17-
which libtool || which libtoolize
17+
command -v libtool || command -v libtoolize
1818
if ! test $? -eq 0
1919
then
2020
echo "error, install libtool"
2121
exit 1
2222
fi
2323

24-
which pkg-config
24+
command -v pkg-config
2525
if ! test $? -eq 0
2626
then
2727
echo "error, install pkg-config"

0 commit comments

Comments
 (0)