Skip to content

Commit b9a550a

Browse files
committed
linux: Fix checkLinuxSystemInfo detection
Add an early return when 'Distribution' and 'Flatpak Runtime' are not found.
1 parent 79f7adf commit b9a550a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

checks/linux.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ def checkLinuxVCam(lines):
178178

179179

180180
def checkLinuxSystemInfo(lines):
181+
hasDistro = search('Distribution:', lines)
182+
hasFlatpak = search('Flatpak Runtime:', lines)
183+
if (len(hasDistro) <= 0) and (len(hasFlatpak) <= 0):
184+
return
185+
181186
if checkFlatpak(lines):
182187
linuxDistroOrFlatpak = 'Flatpak'
183188
linuxSystemInfoHelp = checkFlatpak(lines)[2] + '<br>'

0 commit comments

Comments
 (0)