mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 17:17:57 +01:00
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"
|