From 51916f4b832fec386702c907a21cacee305503a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Wed, 6 Mar 2024 16:33:36 +0100 Subject: [PATCH] fix: incorrect variable names in setup_act_cache (thanks @Vladislav0Art) --- gitbug-java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitbug-java b/gitbug-java index 7a6a3f4..c2315d5 100755 --- a/gitbug-java +++ b/gitbug-java @@ -103,11 +103,11 @@ class GitBugJavaCli(object): def __setup_act_cache(self, name: str, download_url: str): # Download the zip - zip_path = Path(get_project_root(), "act-cache.zip") - if not act_cache.exists(): + zip_path = Path(get_project_root(), f"{name}.zip") + if not zip_path.exists(): self.__download(download_url, zip_path) # Extract the zip - cache_path = Path(get_project_root(), "act-cache") + cache_path = Path(get_project_root(), name) cache_path.mkdir(parents=True, exist_ok=True) with zipfile.ZipFile(zip_path, "r") as zip_ref: zip_ref.extractall(cache_path)