mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 21:03:51 -07:00
Split duplicate SC1009 into SC1014 for if [ grep foo bar ]
This commit is contained in:
parent
1a8e34bfea
commit
8672af29ef
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ readConditionContents single =
|
|||
pos <- getPosition
|
||||
s <- many1 letter
|
||||
when (s `elem` commonCommands) $
|
||||
parseProblemAt pos WarningC 1009 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
||||
parseProblemAt pos WarningC 1014 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
||||
|
||||
where
|
||||
spacingOrLf = condSpacing True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue