mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 12:30:52 +08:00
Use find
This commit is contained in:
@@ -425,7 +425,7 @@ getCommandNameAndToken direct t = fromMaybe (Nothing, t) $ do
|
|||||||
"run" -> firstArg -- Used by bats
|
"run" -> firstArg -- Used by bats
|
||||||
"exec" -> do
|
"exec" -> do
|
||||||
opts <- getBsdOpts "cla:" args
|
opts <- getBsdOpts "cla:" args
|
||||||
(_, (t, _)) <- listToMaybe $ filter (null . fst) opts
|
(_, (t, _)) <- find (null . fst) opts
|
||||||
return t
|
return t
|
||||||
_ -> fail ""
|
_ -> fail ""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user