We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
then
if
if true echo "foo" elif true echo "bar" fi
if true then echo "foo" elif true then echo "bar" 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.
elif
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.
;
if true then
if true; then
None
There was an error while loading. Please reload this page.