Skip to content

replace non-posix tool which with command -v #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion tests/xorg-test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ XORG_ARGS="$@"


# If the X server has setuid bit, make a local copy
XORG_FULL=`which $XORG`
XORG_FULL=`command -v $XORG`
if test -u $XORG_FULL; then
XORG=`pwd`/Xorg.no-setuid
echo "$XORG_FULL has setuid bit set, will use $XORG"
Expand Down