mirror of https://github.com/CrimsonTome/tldr.git
7 lines
230 B
Bash
7 lines
230 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
MD_FILES=`git diff --cached --name-only | tr " " "\n" | egrep ^.*\.md$`
|
||
|
|
||
|
# Execute Markdown lint if any markdown files have been changed and added to git
|
||
|
[[ -z "$MD_FILES" ]] || GEM_PATH=.gem .gem/bin/mdl "$MD_FILES"
|