Skip to content

Commit 2be97f4

Browse files
author
jeremy avnet
committed
Match files on type instead of extension
This solves the problem where executable shell scripts without an extension would be missed.
1 parent 84c790f commit 2be97f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
description: Check Shell Syntax on ALL staged files with user friendly messages and colors
44
entry: pre_commit_hooks/shell-lint.sh
55
language: script
6-
files: (\.sh|\.zsh|\.ksh)$
6+
types: [shell]

0 commit comments

Comments
 (0)