diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0172d57fcd6d0ed39670b2dad18bffdc9d95bb12..8bc4f30721d1d6f6f01daba351ec7c33c5bdef76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,7 @@ --- - repo: git://github.com/pre-commit/pre-commit-hooks - sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 + sha: v0.7.1 hooks: - id: check-added-large-files - id: check-yaml - id: check-merge-conflict -- repo: ./ - sha: v0.2.0 - hooks: - - id: shell-lint - files: shell-lint diff --git a/VERSION b/VERSION index 341cf11faf9a29504168de4e54beaad182c5adc5..9325c3ccda9850bb6e102aef07d314210f5c9f41 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 \ No newline at end of file +0.3.0 \ No newline at end of file diff --git a/hooks.yaml b/hooks.yaml index 06b6a3b3b44445bdfadd0a66b91f0b72f6a9d878..d8408996c2cdfbafade5225554988594a65be6dc 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -2,6 +2,7 @@ - id: shell-lint name: Lint shell scripts description: Run /bin/sh -en against shell scripts. - language: script - entry: shell-lint + language: system + entry: /bin/sh + args: ['-en'] files: \.(sh|bash|ksh|zsh)$ diff --git a/shell-lint b/shell-lint deleted file mode 100755 index e5c815e4e290977143a99c6d671e25dd2de62c8d..0000000000000000000000000000000000000000 --- a/shell-lint +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -e - -for script in $@ -do - sh -en "$script" -done