mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-22 18:27:17 +00:00
Fix shell prepare running on macOS.
This commit is contained in:
parent
627ff6f26e
commit
dd76313084
@ -447,7 +447,7 @@ if customRunCommand:
|
|||||||
with tempfile.NamedTemporaryFile(mode='w', delete=False) as tmp_zshrc:
|
with tempfile.NamedTemporaryFile(mode='w', delete=False) as tmp_zshrc:
|
||||||
tmp_zshrc.write(f'export PS1="{prompt}"\n')
|
tmp_zshrc.write(f'export PS1="{prompt}"\n')
|
||||||
tmp_zshrc_path = tmp_zshrc.name
|
tmp_zshrc_path = tmp_zshrc.name
|
||||||
subprocess.run(['zsh', '--rcs', tmp_zshrc_path], env=modifiedEnv)
|
subprocess.run(['zsh', '--rcs', tmp_zshrc_path], shell=True, env=modifiedEnv)
|
||||||
os.remove(tmp_zshrc_path)
|
os.remove(tmp_zshrc_path)
|
||||||
elif not run(' '.join(runCommand) + '\n'):
|
elif not run(' '.join(runCommand) + '\n'):
|
||||||
print('FAILED :(')
|
print('FAILED :(')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user