Fix submodule check for qmk setup (#11379)
The initialization of the submodules would succeed, but the result of the subsequent check_submodules() run wasn't checked correctly. Co-authored-by: Stefan Schulze <stefan.andre.schulze@posteo.de>
This commit is contained in:
parent
95304f269b
commit
4a10dfb54d
1 changed files with 2 additions and 2 deletions
|
@ -107,9 +107,9 @@ def doctor(cli):
|
||||||
submodules.update()
|
submodules.update()
|
||||||
sub_ok = check_submodules()
|
sub_ok = check_submodules()
|
||||||
|
|
||||||
if CheckStatus.ERROR in sub_ok:
|
if sub_ok == CheckStatus.ERROR:
|
||||||
status = CheckStatus.ERROR
|
status = CheckStatus.ERROR
|
||||||
elif CheckStatus.WARNING in sub_ok and status == CheckStatus.OK:
|
elif sub_ok == CheckStatus.WARNING and status == CheckStatus.OK:
|
||||||
status = CheckStatus.WARNING
|
status = CheckStatus.WARNING
|
||||||
|
|
||||||
# Report a summary of our findings to the user
|
# Report a summary of our findings to the user
|
||||||
|
|
Loading…
Reference in a new issue