mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-11 15:46:26 -07:00
Use find
This commit is contained in:
parent
8480563672
commit
e7820479f0
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue