mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
Merge pull request #350 from igorshubovych/no-lint-changed
Remove lint-changed.sh script
This commit is contained in:
commit
d23b08fcf0
3 changed files with 2 additions and 11 deletions
5
Makefile
5
Makefile
|
@ -20,7 +20,4 @@ deps:
|
|||
lint:
|
||||
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
||||
|
||||
lint-changed:
|
||||
@./scripts/lint-changed.sh
|
||||
|
||||
.PHONY: default index setup hooks deps lint lint-changed
|
||||
.PHONY: default index setup hooks deps lint
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/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"
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
make lint-changed
|
||||
make lint
|
||||
|
|
Loading…
Add table
Reference in a new issue