Use "command -v" shell builtin instead of "which"

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2020-02-12 10:23:58 -08:00
parent 93e5c4d320
commit 42bfdf5f2d
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
pwd pwd
} }
if ! ( which go-md2man &>/dev/null ); then if ! type go-md2man; then
echo "To install man pages, please install 'go-md2man'." echo "To install man pages, please install 'go-md2man'."
exit 0 exit 0
fi fi