From dbdab5705fc6745f68c45416edcc11276f9519a6 Mon Sep 17 00:00:00 2001 From: Stefan Knudsen Date: Fri, 19 Jan 2018 16:19:06 -0500 Subject: [PATCH] Use readVariableName combinator --- ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index 0408b38..17190d1 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -392,7 +392,7 @@ withAnnotations anns = readConditionContents single = readCondContents `attempting` lookAhead (do pos <- getPosition - s <- many1 letter + s <- readVariableName when (s `elem` commonCommands) $ parseProblemAt pos WarningC 1014 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")