Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/libpainter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2021-12-02 13:25:47 +0300
committerGitHub <noreply@github.com>2021-12-02 13:25:47 +0300
commitb44f2fac46dc818c441dd540cafb1fdf332ab456 (patch)
tree7d6e498c8853f269086364c9b79bb75672ae37b8
parentcc66c2c55d628732a87becfb0f4d215d5480874c (diff)
Replace 'which' with 'command -v' (#18)
As per neutrinolabs/xrdp#2067
-rwxr-xr-xbootstrap8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index be61972..73e2c2d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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"