fix: fix
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user