SC1050
Joachim Ansorg edited this page Nov 12, 2021
·
2 revisions
Expected then.
Problematic code:
if true
echo "True"
fiCorrect code:
if true
then
echo "True"
fiRationale:
ShellCheck has found an if statement that appears to be missing a then.
Make sure the then exists, and that it is the first word of the line (or immediately preceded by a semicolon).
Exceptions:
None