~ruther/qmk_firmware

197a401be6585b0b9aad3ca02ec1829e894e9a62 — Mikkel Jeppesen 5 years ago 4a208b8
Qmk doctor os check to support newer msys2/w10 installations (#8031)

* Fixed OS detection on newer MSYS installations

* made OS sting lower case
1 files changed, 4 insertions(+), 4 deletions(-)

M lib/python/qmk/cli/doctor.py
M lib/python/qmk/cli/doctor.py => lib/python/qmk/cli/doctor.py +4 -4
@@ 168,15 168,15 @@ def doctor(cli):
    ok = True

    # Determine our OS and run platform specific tests
    OS = platform.system()  # noqa (N806), uppercase name is ok in this instance
    OS = platform.platform().lower()  # noqa (N806), uppercase name is ok in this instance

    if OS == 'Darwin':
    if 'darwin' in OS:
        if not os_test_macos():
            ok = False
    elif OS == 'Linux':
    elif 'linux' in OS:
        if not os_test_linux():
            ok = False
    elif OS == 'Windows':
    elif 'windows' in OS:
        if not os_test_windows():
            ok = False
    else: