Fixed failing test

This commit is contained in:
Vidar Holen 2014-06-10 00:33:54 -07:00
parent d13253973b
commit b035331d4a
1 changed files with 2 additions and 1 deletions

View File

@ -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