From dcc3100b381f9a4fd403e73c1c459d40bfd79d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thireus=20=E2=98=A0?= Date: Tue, 17 Sep 2024 20:01:47 +0100 Subject: [PATCH] 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. --- one_click.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one_click.py b/one_click.py index 0a0412ba07..d35ecc8923 100644 --- a/one_click.py +++ b/one_click.py @@ -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: