Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
- proper escaping of ' character
  • Loading branch information
Avnsx authored Jun 11, 2023
1 parent cf8c7df commit 1a144ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/update_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 1a144ea

Please sign in to comment.