Update index.py

This commit is contained in:
Mr Chen 2024-07-19 19:28:17 +08:00
parent 42dfe63c2f
commit b4c00a2d27
1 changed files with 3 additions and 3 deletions

View File

@ -391,12 +391,12 @@ def installPreInspection():
cmd = "cat /etc/*-release | grep PRETTY_NAME |awk -F = '{print $2}' | awk -F '\"' '{print $2}'| awk '{print $1}'"
sys = mw.execShell(cmd)
sysName = sys[0].strip().lower()
if sysName == '':
return '不支持该系统'
cmd = "cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F '\"' '{print $2}'"
sys_id = mw.execShell(cmd)
sysName = sys[0].strip().lower()
sysId = sys_id[0].strip().lower()
if not sysName in ['debain','centos']: