add missing references to dash
This commit is contained in:
parent
c2850e436f
commit
af87fe9315
|
@ -337,7 +337,7 @@ checkInjectableFindSh = CommandCheck (Basename "find") (check . arguments)
|
||||||
|
|
||||||
pattern = [
|
pattern = [
|
||||||
(`elem` ["-exec", "-execdir"]),
|
(`elem` ["-exec", "-execdir"]),
|
||||||
(`elem` ["sh", "bash", "ksh"]),
|
(`elem` ["sh", "bash", "dash", "ksh"]),
|
||||||
(== "-c")
|
(== "-c")
|
||||||
]
|
]
|
||||||
action (id, arg) =
|
action (id, arg) =
|
||||||
|
|
|
@ -2587,8 +2587,8 @@ readScriptFile = do
|
||||||
verifyShell pos s =
|
verifyShell pos s =
|
||||||
case isValidShell s of
|
case isValidShell s of
|
||||||
Just True -> return ()
|
Just True -> return ()
|
||||||
Just False -> parseProblemAt pos ErrorC 1071 "ShellCheck only supports sh/bash/ksh scripts. Sorry!"
|
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/ksh."
|
Nothing -> parseProblemAt pos InfoC 1008 "This shebang was unrecognized. Note that ShellCheck only handles sh/bash/dash/ksh."
|
||||||
|
|
||||||
isValidShell s =
|
isValidShell s =
|
||||||
let good = s == "" || any (`isPrefixOf` s) goodShells
|
let good = s == "" || any (`isPrefixOf` s) goodShells
|
||||||
|
|
Loading…
Reference in New Issue