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
Branches
Tags v0.3.0
No related merge requests found
---
- 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
0.2.0
\ No newline at end of file
0.3.0
\ No newline at end of file
......@@ -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)$
#!/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