mirror of
https://github.com/boostorg/build.git
synced 2026-02-12 12:02:24 +00:00
Replace "whence" with "command" as that is more widely available.
[SVN r29733]
This commit is contained in:
@@ -43,8 +43,8 @@ error_exit ()
|
||||
# Check that a command is in the PATH.
|
||||
test_path ()
|
||||
{
|
||||
if `whence 1>/dev/null 2>/dev/null`; then
|
||||
whence $1 1>/dev/null 2>/dev/null
|
||||
if `command 1>/dev/null 2>/dev/null`; then
|
||||
command -v $1 1>/dev/null 2>/dev/null
|
||||
else
|
||||
hash $1 1>/dev/null 2>/dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user