mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 10:35:10 +02:00
Force /bin/bash shell for conda
I have found that conda may use a different shell in some instances, such as /bin/sh. This fix ensures it executes /bin/bash instead.
This commit is contained in:
parent
a50477ec85
commit
dcc3100b38
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ def run_cmd(cmd, assert_success=False, environment=False, capture_output=False,
|
|||
cmd = f'. "{conda_sh_path}" && conda activate "{conda_env_path}" && {cmd}'
|
||||
|
||||
# Run shell commands
|
||||
result = subprocess.run(cmd, shell=True, capture_output=capture_output, env=env)
|
||||
result = subprocess.run(cmd, shell=True, executable='/bin/bash', capture_output=capture_output, env=env)
|
||||
|
||||
# Assert the command ran successfully
|
||||
if assert_success and result.returncode != 0:
|
||||
|
|
Loading…
Reference in a new issue