Fixed warning for [[ greplol ]]
This commit is contained in:
parent
55a4c3c44f
commit
35b8d58c3e
|
@ -205,8 +205,9 @@ called s p = do
|
||||||
readConditionContents single = do
|
readConditionContents single = do
|
||||||
readCondContents `attempting` (lookAhead $ do
|
readCondContents `attempting` (lookAhead $ do
|
||||||
pos <- getPosition
|
pos <- getPosition
|
||||||
choice (map (try . string) commonCommands)
|
s <- many1 letter
|
||||||
parseProblemAt pos WarningC "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
when (s `elem` commonCommands) $
|
||||||
|
parseProblemAt pos WarningC "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
||||||
|
|
||||||
where
|
where
|
||||||
typ = if single then SingleBracket else DoubleBracket
|
typ = if single then SingleBracket else DoubleBracket
|
||||||
|
|
Loading…
Reference in New Issue