Fixed failing test
This commit is contained in:
parent
d13253973b
commit
b035331d4a
|
@ -531,7 +531,8 @@ checkPipePitfalls _ (T_Pipeline id _ commands) = do
|
|||
first func (x:_) = func (getId x)
|
||||
first _ _ = return ()
|
||||
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 ()
|
||||
|
||||
indexOfSublists sub = f 0
|
||||
|
|
Loading…
Reference in New Issue