Updated SC1072 (markdown)

Toby
2017-12-21 22:27:38 +00:00
parent 80572ade66
commit f088f85360

@@ -3,3 +3,5 @@
*Note: There is a [known bug](../issues/1036) in the current version when [directives](../wiki/Directive) appear within `then` clauses of `if` blocks that causes Shellcheck to report SC1072 on otherwise valid code. Avoid using directives within `then` clauses - instead place them at the top of the `if` block or another enclosing block. This is fixed on the [online version](https://www.shellcheck.net/) and the next release.*
See [Parser Error](https://github.com/koalaman/shellcheck/wiki/Parser-Error).
This error occurs in Bash when you put `then` after `else` in an if then else. Else does not need a `then` and it should be removed.