Skip to content

Commit

Permalink
Fix incorrect shebang detection
Browse files Browse the repository at this point in the history
  • Loading branch information
macbutch committed Feb 18, 2019
1 parent cb4a37a commit 831ec4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export PATH=$PATH:/usr/local/bin
exit_status=0

for file in "$@"; do
if (head -1 "$file" |grep '^#!.*[sh]'>/dev/null); then
if (head -1 "$file" |grep '^#!.*sh'>/dev/null); then

if ! shellcheck "$file"; then
exit_status=1
Expand Down

0 comments on commit 831ec4f

Please sign in to comment.