Fix warning message for SC2181

This commit is contained in:
Chaitanya Dandugula 2021-04-12 13:26:09 +05:30
commit 8e3e540f7e

View file

@ -3123,7 +3123,7 @@ checkReturnAgainstZero _ token =
case getWordParts t of
[T_DollarBraced _ _ l] -> concat (oversimplify l) == "?"
_ -> False
message id = style id 2181 "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?."
message id = style id 2181 "Check exit code directly, not indirectly with $?."
prop_checkRedirectedNowhere1 = verify checkRedirectedNowhere "> file"
prop_checkRedirectedNowhere2 = verify checkRedirectedNowhere "> file | grep foo"