-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1049
koalaman edited this page Jan 20, 2016
·
4 revisions
if true
echo "foo"
elif true
echo "bar"
fi
if true
then
echo "foo"
elif true
then
echo "bar"
fi```
### Rationale:
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`).
### Exceptions:
None