Force /bin/bash shell for conda (#6386)

This commit is contained in:
Thireus ☠ 2024-09-27 23:47:04 +01:00 committed by GitHub
parent 5c918c5b2d
commit 626b0a0437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: