Improve conda environment directory detection

Changed pattern to *env* to match both envs and conda_envs directories.
This ensures all environment directories are added to CONDA_ENVS_DIRS.
This commit is contained in:
Vishal Jain 2025-06-18 01:01:35 +01:00
parent 51edcfc2bb
commit 1d1d6bcbaf

View File

@ -87,7 +87,7 @@ if [ -n "$CONDA_EXTRA_DIRS" ]; then
echo " - Mounting $dir"
MOUNT_ARGS="$MOUNT_ARGS -v $dir:$dir:ro"
# Build comma-separated list for CONDA_ENVS_DIRS
if [[ "$dir" == *"envs"* ]]; then
if [[ "$dir" == *"env"* ]]; then
if [ -z "$CONDA_ENVS_PATHS" ]; then
CONDA_ENVS_PATHS="$dir"
else