Skip to content

Commit 6fa8ad1

Browse files
authored
Merge pull request gruntwork-io#11 from macbutch/fix-shebang
Fix incorrect shebang detection
2 parents cb4a37a + 831ec4f commit 6fa8ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/shellcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export PATH=$PATH:/usr/local/bin
1010
exit_status=0
1111

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

1515
if ! shellcheck "$file"; then
1616
exit_status=1

0 commit comments

Comments
 (0)