From 1a144ea3f87ee0b4cbb6f7465b01616143d13811 Mon Sep 17 00:00:00 2001 From: Mika C <59329994+Avnsx@users.noreply.github.com> Date: Sun, 11 Jun 2023 13:55:49 +0200 Subject: [PATCH] bug fix - proper escaping of ' character --- utils/update_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/update_util.py b/utils/update_util.py index b7bfa5e..103d49f 100644 --- a/utils/update_util.py +++ b/utils/update_util.py @@ -155,7 +155,7 @@ def handle_update(current_version: str, release: dict): if plat == 'Windows': arguments = ['--update', release['release_version']] # i'm open for improvement suggestions, which will be insensitive to file paths & succeed passing start arguments to compiled executables - subprocess.run(['powershell', '-Command', f"Start-Process -FilePath '{filepath}' -ArgumentList {', '.join(arguments)}"], shell=True) + subprocess.run(['powershell', '-Command', f"Start-Process -FilePath \'{filepath}\' -ArgumentList {', '.join(arguments)}"], shell=True) elif plat == 'Linux': subprocess.run([filepath, '--update', release['release_version']], shell=True) # still sensitive to file paths? elif plat == 'Darwin':