fi for
this if.if true
then
echo "True"
doneif true
then
echo "True"
fiShellCheck has found an if statement that does not
appear to have a matching terminating fi.
This could be because it's missing entirely, or because the
if statement was incorrectly terminated by a mismatched
done, esac, ) or similar. A
companion warning SC1047 is emitted at the point
where ShellCheck expected the fi.
Check that the if statement is completely and correctly
terminated.
None
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.