Explorar o código

Fixed OS detection such that OSX doesn't take over the world (#8248)

Mikkel Jeppesen %!s(int64=5) %!d(string=hai) anos
pai
achega
4667bc554e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/qmk/cli/doctor.py

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

@@ -170,7 +170,7 @@ def doctor(cli):
     # Determine our OS and run platform specific tests
     OS = platform.platform().lower()  # noqa (N806), uppercase name is ok in this instance
 
-    if 'darwin' or 'macos' in OS:
+    if 'darwin' in OS or 'macos' in OS:
         if not os_test_macos():
             ok = False
     elif 'linux' in OS: