Skip to content

Commit

Permalink
Replace which with command -v
Browse files Browse the repository at this point in the history
as well as neutrinolabs/xorgxrdp#204.

Reported by: @drwilly
  • Loading branch information
metalefty committed Dec 1, 2021
1 parent 3b24ecd commit a3d8761
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit a3d8761

Please sign in to comment.