diff --git a/Makefile b/Makefile index ae83325c33..72e126749f 100644 --- a/Makefile +++ b/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 diff --git a/scripts/lint-changed.sh b/scripts/lint-changed.sh deleted file mode 100755 index 022cee27f4..0000000000 --- a/scripts/lint-changed.sh +++ /dev/null @@ -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" diff --git a/scripts/pre-commit b/scripts/pre-commit index 73130ee76e..53769a2552 100644 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -1,3 +1,3 @@ #!/bin/sh -make lint-changed +make lint