You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: checks/linux.py
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,14 @@ def checkDistro(lines):
51
51
distro=isDistroNix[0].split()
52
52
distro=distro[2:]
53
53
distro=' '.join(distro)
54
+
distroHelp=''
54
55
55
-
return [LEVEL_INFO, distro, ""]
56
+
# this is logged when the file can't be found at all
57
+
ifdistro=='Missing /etc/os-release !':
58
+
distro='(Missing)'
59
+
distroHelp='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