diff --git a/setup.py b/setup.py index 75bc110..aeb9ab5 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text() setup( name='worthless', - version='1.2.1', + version='1.2.2', packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'], url='https://git.froggi.es/tretrauit/worthless-launcher', license='MIT License', diff --git a/worthless/patcher.py b/worthless/patcher.py index 1b22bb6..a957542 100644 --- a/worthless/patcher.py +++ b/worthless/patcher.py @@ -62,9 +62,11 @@ class Patcher: if shutil.which("git"): if not self._patch_path.exists() or not self._patch_path.is_dir() \ or not self._patch_path.joinpath(".git").exists(): - await asyncio.create_subprocess_exec("git", "clone", self._patch_url, str(self._patch_path)) + proc = await asyncio.create_subprocess_exec("git", "clone", self._patch_url, str(self._patch_path)) + await proc.wait() else: - await asyncio.create_subprocess_exec("git", "pull", cwd=str(self._patch_path)) + proc = await asyncio.create_subprocess_exec("git", "pull", cwd=str(self._patch_path)) + await proc.wait() else: archive = await self._get_git_archive() if not archive: