diff --git a/util/updator/astrbot_updator.py b/util/updator/astrbot_updator.py index c13087c33..a055f0c04 100644 --- a/util/updator/astrbot_updator.py +++ b/util/updator/astrbot_updator.py @@ -34,6 +34,7 @@ class AstrBotUpdator(RepoZipUpdator): if delay: time.sleep(delay) py = sys.executable self.terminate_child_processes() + py = py.replace(" ", "\\ ") os.execl(py, py, *sys.argv) def check_update(self, url: str, current_version: str) -> ReleaseInfo: