[F] Properly escape path #89
This commit is contained in:
parent
6302ccbfdf
commit
2860c1efd6
1 changed files with 2 additions and 2 deletions
|
@ -237,13 +237,13 @@ def run_neofetch_cmd(args: str, pipe: bool = False) -> str | None:
|
||||||
Run neofetch command
|
Run neofetch command
|
||||||
"""
|
"""
|
||||||
if platform.system() != 'Windows':
|
if platform.system() != 'Windows':
|
||||||
full_cmd = shlex.split(f'/usr/bin/env bash {get_command_path()} {args}')
|
full_cmd = ['/usr/bin/env', 'bash', get_command_path(), *shlex.split(args)]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")
|
cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")
|
||||||
args = args.replace('\\', '/').replace('C:/', '/c/')
|
args = args.replace('\\', '/').replace('C:/', '/c/')
|
||||||
|
|
||||||
full_cmd = [ensure_git_bash(), '-c', f'{cmd} {args}']
|
full_cmd = [ensure_git_bash(), '-c', f"'{cmd}' {args}"]
|
||||||
# print(full_cmd)
|
# print(full_cmd)
|
||||||
|
|
||||||
if pipe:
|
if pipe:
|
||||||
|
|
Loading…
Reference in a new issue