From 2ea22931545ce7251bfdc2f61e04153bfccfa9f6 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 27 Jan 2019 15:01:52 -0800 Subject: [PATCH] Update SC1008 to suggest using directive. --- src/ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Parser.hs b/src/ShellCheck/Parser.hs index 14e31e3..8a7f794 100644 --- a/src/ShellCheck/Parser.hs +++ b/src/ShellCheck/Parser.hs @@ -3032,7 +3032,7 @@ readScriptFile = do case isValidShell s of Just True -> return () Just False -> parseProblemAt pos ErrorC 1071 "ShellCheck only supports sh/bash/dash/ksh scripts. Sorry!" - Nothing -> parseProblemAt pos InfoC 1008 "This shebang was unrecognized. Note that ShellCheck only handles sh/bash/dash/ksh." + Nothing -> parseProblemAt pos ErrorC 1008 "This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify." isValidShell s = let good = s == "" || any (`isPrefixOf` s) goodShells