aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/doctor.py
diff options
context:
space:
mode:
authorMikkel Jeppesen <2756925+Duckle29@users.noreply.github.com>2020-01-28 22:21:00 +0100
committerErovia <Erovia@users.noreply.github.com>2020-01-28 22:21:00 +0100
commit197a401be6585b0b9aad3ca02ec1829e894e9a62 (patch)
treeffb64115de906a766d1c80d916d2212aaf575fec /lib/python/qmk/cli/doctor.py
parent4a208b89516f02f4ff7e17861aabbe1b5af13f81 (diff)
downloadqmk_firmware-197a401be6585b0b9aad3ca02ec1829e894e9a62.tar.gz
qmk_firmware-197a401be6585b0b9aad3ca02ec1829e894e9a62.zip
Qmk doctor os check to support newer msys2/w10 installations (#8031)
* Fixed OS detection on newer MSYS installations * made OS sting lower case
Diffstat (limited to 'lib/python/qmk/cli/doctor.py')
-rwxr-xr-xlib/python/qmk/cli/doctor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/qmk/cli/doctor.py b/lib/python/qmk/cli/doctor.py
index 013bf7943..0d6c1c5b0 100755
--- a/lib/python/qmk/cli/doctor.py
+++ b/lib/python/qmk/cli/doctor.py
@@ -168,15 +168,15 @@ def doctor(cli):
168 ok = True 168 ok = True
169 169
170 # Determine our OS and run platform specific tests 170 # Determine our OS and run platform specific tests
171 OS = platform.system() # noqa (N806), uppercase name is ok in this instance 171 OS = platform.platform().lower() # noqa (N806), uppercase name is ok in this instance
172 172
173 if OS == 'Darwin': 173 if 'darwin' in OS:
174 if not os_test_macos(): 174 if not os_test_macos():
175 ok = False 175 ok = False
176 elif OS == 'Linux': 176 elif 'linux' in OS:
177 if not os_test_linux(): 177 if not os_test_linux():
178 ok = False 178 ok = False
179 elif OS == 'Windows': 179 elif 'windows' in OS:
180 if not os_test_windows(): 180 if not os_test_windows():
181 ok = False 181 ok = False
182 else: 182 else: