mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 04:50:29 -07:00
Fixed failing test
This commit is contained in:
parent
d13253973b
commit
b035331d4a
1 changed files with 2 additions and 1 deletions
|
@ -531,7 +531,8 @@ checkPipePitfalls _ (T_Pipeline id _ commands) = do
|
||||||
first func (x:_) = func (getId x)
|
first func (x:_) = func (getId x)
|
||||||
first _ _ = return ()
|
first _ _ = return ()
|
||||||
hasShortParameter char list = any (\x -> "-" `isPrefixOf` x && char `elem` x) list
|
hasShortParameter char list = any (\x -> "-" `isPrefixOf` x && char `elem` x) list
|
||||||
hasParameter string list = any (("--" ++ string) `isPrefixOf`) list
|
hasParameter string list =
|
||||||
|
any (isPrefixOf string . dropWhile (== '-')) list
|
||||||
checkPipePitfalls _ _ = return ()
|
checkPipePitfalls _ _ = return ()
|
||||||
|
|
||||||
indexOfSublists sub = f 0
|
indexOfSublists sub = f 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue