From 8672af29ef6af5739cb01aeea4208ed42654f312 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 1 Oct 2016 13:34:14 -0700 Subject: [PATCH] Split duplicate SC1009 into SC1014 for if [ grep foo bar ] --- ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index 5aa4c6a..1481d1f 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -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