Skip to content

Commit

Permalink
Merge pull request #32 from mineiros-io/mariux/fix-markdown
Browse files Browse the repository at this point in the history
chore: help to find markdown link checker binary
  • Loading branch information
mariux authored Apr 17, 2022
2 parents 68844ed + f4cc6da commit 86aafec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pre_commit_hooks/markdown/markdown-link-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -e

if command -v npm >/dev/null 2>&1; then
prefix=$(npm config get prefix)
export PATH=${PATH}:${prefix}/bin
fi

if ! command -v markdown-link-check >/dev/null 2>&1; then
echo >&2 "markdown-link-check is not available on this system."
echo >&2 "Please install it by running 'npm install -g markdown-link-check'"
Expand Down

0 comments on commit 86aafec

Please sign in to comment.