Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
--- ---
- repo: git://github.com/pre-commit/pre-commit-hooks - repo: git://github.com/pre-commit/pre-commit-hooks
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 sha: v0.7.1
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-yaml - id: check-yaml
- id: check-merge-conflict - id: check-merge-conflict
- repo: ./
sha: v0.2.0
hooks:
- id: shell-lint
files: shell-lint
0.2.0 0.3.0
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- id: shell-lint - id: shell-lint
name: Lint shell scripts name: Lint shell scripts
description: Run /bin/sh -en against shell scripts. description: Run /bin/sh -en against shell scripts.
language: script language: system
entry: shell-lint entry: /bin/sh
args: ['-en']
files: \.(sh|bash|ksh|zsh)$ files: \.(sh|bash|ksh|zsh)$
#!/bin/sh -e
for script in $@
do
sh -en "$script"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment