소스 검색

Fix submodule check (#9155)

Erovia 5 년 전
부모
커밋
83ebbf57b3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      lib/python/qmk/cli/doctor.py

+ 4 - 1
lib/python/qmk/cli/doctor.py

@@ -131,7 +131,10 @@ def check_submodules():
                 cli.log.warn('Submodule %s is not available.', submodule['name'])
         elif not submodule['status']:
             if submodule['name'] in ESSENTIAL_SUBMODULES:
-                cli.log.warn('Submodule %s is not up to date!')
+                cli.log.error('Submodule %s is not up to date!', submodule['name'])
+                ok = False
+            else:
+                cli.log.warn('Submodule %s is not up to date!', submodule['name'])
 
     return ok