Skip to content

Commit

Permalink
Force /bin/bash shell for conda (#6386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thireus authored Sep 27, 2024
1 parent 5c918c5 commit 626b0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion one_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 626b0a0

Please sign in to comment.