Merge pull request #2228 from cpuguy83/no_whiches
Use "command -v" shell builtin instead of "which"
This commit is contained in:
commit
bbaba4c081
|
@ -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