mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-22 07:07:58 +08:00
✨ 修复部分linux获取发行版错误的问题
This commit is contained in:
parent
ce3a07e350
commit
7cbca85a60
@ -20,7 +20,7 @@ try:
|
||||
for line in os_release.split("\n"):
|
||||
if line.startswith("NAME="):
|
||||
os_name = line.split("=")[1].replace('"', '')
|
||||
elif line.startswith("VERSION="):
|
||||
elif line.startswith("VERSION_ID="):
|
||||
os_version = line.split("=")[1].replace('"', '')
|
||||
except FileNotFoundError:
|
||||
os_name = platform.system()
|
||||
|
Loading…
Reference in New Issue
Block a user