Use "command -v" shell builtin instead of "which"
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
93e5c4d320
commit
42bfdf5f2d
|
@ -9,7 +9,7 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
|||
pwd
|
||||
}
|
||||
|
||||
if ! ( which go-md2man &>/dev/null ); then
|
||||
if ! type go-md2man; then
|
||||
echo "To install man pages, please install 'go-md2man'."
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue