File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ command -v conda >/dev/null 2>&1 || {
22
22
ENVNAME=" ${ENVNAME:- testenv} " # if no ENVNAME is specified, use testenv
23
23
24
24
if [ -z ${GLOBAL} ]; then
25
+ source $( dirname $( dirname $( which conda) ) ) /etc/profile.d/conda.sh
25
26
if conda env list | grep -q ${ENVNAME} ; then
26
27
echo " Environment ${ENVNAME} already exists, keeping up to date"
27
- source activate ${ENVNAME}
28
+ conda activate ${ENVNAME}
28
29
mamba env update -f environment-dev.yml
29
30
else
30
31
conda config --add channels conda-forge
31
32
conda config --set channel_priority strict
32
33
conda install -c conda-forge mamba --yes
33
34
mamba env create -f environment-dev.yml
34
- source activate ${ENVNAME}
35
+ conda activate ${ENVNAME}
35
36
fi
36
37
fi
37
38
You can’t perform that action at this time.
0 commit comments