[O] Optimize fore_back distro detection
This commit is contained in:
parent
ff44ea6185
commit
717ff369c0
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ def get_fore_back(distro: str | None = None) -> tuple[int, int] | None:
|
|||
distro = GLOBAL_CFG.override_distro
|
||||
if not distro:
|
||||
distro = get_distro_name().lower()
|
||||
distro = distro.lower()
|
||||
distro = distro.lower().replace(' ', '-')
|
||||
for k, v in fore_back.items():
|
||||
if distro == k.lower():
|
||||
return v
|
||||
|
|
Loading…
Reference in a new issue