Skip to content

Commit 8f5638a

Browse files
committed
linux: Fix checkLinuxSystemInfo for Win/Mac
1 parent 79f7adf commit 8f5638a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

checks/linux.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from .vars import *
22
from .utils.utils import *
3+
from .macos import getMacVersionLine
4+
from .windows import getWindowsVersionLine
35

46

57
def getSessionTypeLine(lines):
@@ -185,6 +187,8 @@ def checkLinuxSystemInfo(lines):
185187
linuxDistroOrFlatpak = 'Distribution: ' + checkDistro(lines)[1]
186188
linuxSystemInfoHelp = ''
187189
else:
190+
if getMacVersionLine(lines) or getWindowsVersionLine(lines):
191+
return
188192
# I have never seen this, but you never know
189193
linuxDistroOrFlatpak = 'Distribution: ⚠️ None'
190194
linuxSystemInfoHelp = 'No distribution detected. This can lead to undefined behaviour. Please consult your distribution\'s support channels on how to fix this.<br>'

0 commit comments

Comments
 (0)