2 SC1050
Joachim Ansorg edited this page 2021-11-12 10:36:31 +01:00

Expected then.

Problematic code:

if true
  echo "True"
fi

Correct code:

if true
then
  echo "True"
fi

Rationale:

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