Merge pull request #2228 from cpuguy83/no_whiches

Use "command -v" shell builtin instead of "which"
This commit is contained in:
Akihiro Suda 2020-03-10 01:16:05 +09:00 committed by GitHub
commit bbaba4c081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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