mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1049 (markdown)
@@ -26,7 +26,9 @@ fi
|
|||||||
|
|
||||||
ShellCheck found a parsing error in the script, and determined that it's most likely due to a missing `then` keyword for the `if` or `elif` indicated.
|
ShellCheck found a parsing error in the script, and determined that it's most likely due to a missing `then` keyword for the `if` or `elif` indicated.
|
||||||
|
|
||||||
Make sure the `then` is there. It needs `;` or linefeed before it (e.g. `if true; then`, not `if true then`).
|
Make sure the `then` is there.
|
||||||
|
|
||||||
|
Note that the `then` needs a `;` or linefeed before it. `if true then` is invalid, while `if true; then` is correct.
|
||||||
|
|
||||||
### Exceptions:
|
### Exceptions:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user