Skip to content

Commit bbaba4c

Browse files
authored
Merge pull request #2228 from cpuguy83/no_whiches
Use "command -v" shell builtin instead of "which"
2 parents 2864bf4 + 42bfdf5 commit bbaba4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

man/md2man-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
99
pwd
1010
}
1111

12-
if ! ( which go-md2man &>/dev/null ); then
12+
if ! type go-md2man; then
1313
echo "To install man pages, please install 'go-md2man'."
1414
exit 0
1515
fi

0 commit comments

Comments
 (0)