From 831ec4fe20d63f14e215b9294445df7bff79a0f8 Mon Sep 17 00:00:00 2001 From: Mark Butcher Date: Mon, 18 Feb 2019 16:34:10 +1100 Subject: [PATCH] Fix incorrect shebang detection --- hooks/shellcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/shellcheck.sh b/hooks/shellcheck.sh index 5e2b2ab8..027d0966 100755 --- a/hooks/shellcheck.sh +++ b/hooks/shellcheck.sh @@ -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