mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-22 03:45:41 +08:00
Fixed failing test
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user