This commit is contained in:
2026-03-12 22:18:12 +07:00
parent dd6272233c
commit 7106aa35e4

View File

@@ -32,7 +32,9 @@ def get_nginx_info() -> tuple[str | None, str | None]:
return (None, None)
def download_and_unpack(module: dict) -> str:
def download_and_unpack(module: dict | str) -> str:
if isinstance(module, str):
module = {"name": module.split("/")[-1].rsplit(".", 2)[0], "url": module}
url = module["url"]
print(f"Downloading '{url}'...")
file_name = url.split("/")[-1]