mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-29 21:50:16 +01:00
Force /bin/bash shell for conda (#6386)
This commit is contained in:
parent
5c918c5b2d
commit
626b0a0437
@ -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 New Issue
Block a user