-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1046
Joachim Ansorg edited this page Nov 12, 2021
·
3 revisions
if true
then
echo "True"
done
if true
then
echo "True"
fi
ShellCheck 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