From 42bfdf5f2d1011988d23ea29030de66b8976bd1d Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Wed, 12 Feb 2020 10:23:58 -0800 Subject: [PATCH] Use "command -v" shell builtin instead of "which" Signed-off-by: Brian Goff --- man/md2man-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/md2man-all.sh b/man/md2man-all.sh index f850ddf3..eaee58ee 100755 --- a/man/md2man-all.sh +++ b/man/md2man-all.sh @@ -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