mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-28 18:53:55 +02:00
Fix shell prepare running on macOS.
This commit is contained in:
parent
627ff6f26e
commit
dd76313084
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ if customRunCommand:
|
|||
with tempfile.NamedTemporaryFile(mode='w', delete=False) as tmp_zshrc:
|
||||
tmp_zshrc.write(f'export PS1="{prompt}"\n')
|
||||
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)
|
||||
elif not run(' '.join(runCommand) + '\n'):
|
||||
print('FAILED :(')
|
||||
|
|
Loading…
Add table
Reference in a new issue