Commit cf1439a3 authored by nimrod's avatar nimrod
Browse files

- Removed shell-lint script, specify run directly in

.pre-commit-hooks.yaml, update pre-commit-config.yaml accordingly.
- Set pre-commit hooks by version tag instead of hash.
- Bump minor version.
parent 2d36df13
Loading
Loading
Loading
Loading
+1 −6
Changes for .pre-commit-config.yaml: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
---
-   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
+1 −1
Changes for VERSION: 1 added line, 1 removed line.
Original line number Diff line number Diff line
0.2.0
 No newline at end of file
0.3.0
 No newline at end of file
+3 −2
Changes for hooks.yaml: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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)$

shell-lint

deleted100755 → 0
+0 −6
Changes for shell-lint: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
#!/bin/sh -e

for script in $@
do
    sh -en "$script"
done