mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Use readVariableName combinator
This commit is contained in:
parent
46a3019ed7
commit
dbdab5705f
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ withAnnotations anns =
|
||||||
readConditionContents single =
|
readConditionContents single =
|
||||||
readCondContents `attempting` lookAhead (do
|
readCondContents `attempting` lookAhead (do
|
||||||
pos <- getPosition
|
pos <- getPosition
|
||||||
s <- many1 letter
|
s <- readVariableName
|
||||||
when (s `elem` commonCommands) $
|
when (s `elem` commonCommands) $
|
||||||
parseProblemAt pos WarningC 1014 "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.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue