mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-22 06:13:54 -07:00
Fix warning message for SC2181
This commit is contained in:
parent
5669eb2203
commit
8e3e540f7e
1 changed files with 1 additions and 1 deletions
|
@ -3123,7 +3123,7 @@ checkReturnAgainstZero _ token =
|
||||||
case getWordParts t of
|
case getWordParts t of
|
||||||
[T_DollarBraced _ _ l] -> concat (oversimplify l) == "?"
|
[T_DollarBraced _ _ l] -> concat (oversimplify l) == "?"
|
||||||
_ -> False
|
_ -> 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_checkRedirectedNowhere1 = verify checkRedirectedNowhere "> file"
|
||||||
prop_checkRedirectedNowhere2 = verify checkRedirectedNowhere "> file | grep foo"
|
prop_checkRedirectedNowhere2 = verify checkRedirectedNowhere "> file | grep foo"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue