forked from shaba/openuds
adder renamer for opensuse-leap
This commit is contained in:
parent
73445c516b
commit
27f867f71a
@ -129,7 +129,7 @@ def getLinuxOs() -> str:
|
||||
data = f.read()
|
||||
cfg = configparser.ConfigParser()
|
||||
cfg.read_string('[os]\n' + data)
|
||||
return cfg['os'].get('id', 'unknown')
|
||||
return cfg['os'].get('id', 'unknown').replace('"', '')
|
||||
except Exception:
|
||||
return 'unknown'
|
||||
|
||||
|
@ -63,3 +63,4 @@ def rename(newName: str) -> bool:
|
||||
# All names in lower case
|
||||
renamers['opensuse'] = rename
|
||||
renamers['suse'] = rename
|
||||
renamers['opensuse-leap'] = rename
|
||||
|
Loading…
Reference in New Issue
Block a user