Skip to content

Commit

Permalink
Merge pull request #11 from macbutch/fix-shebang
Browse files Browse the repository at this point in the history
Fix incorrect shebang detection
  • Loading branch information
brikis98 authored Feb 22, 2019
2 parents cb4a37a + 831ec4f commit 6fa8ad1
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 6fa8ad1

Please sign in to comment.