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 || {
2222ENVNAME=" ${ENVNAME:- testenv} " # if no ENVNAME is specified, use testenv
2323
2424if [ -z ${GLOBAL} ]; then
25+ source $( dirname $( dirname $( which conda) ) ) /etc/profile.d/conda.sh
2526 if conda env list | grep -q ${ENVNAME} ; then
2627 echo " Environment ${ENVNAME} already exists, keeping up to date"
27- source activate ${ENVNAME}
28+ conda activate ${ENVNAME}
2829 mamba env update -f environment-dev.yml
2930 else
3031 conda config --add channels conda-forge
3132 conda config --set channel_priority strict
3233 conda install -c conda-forge mamba --yes
3334 mamba env create -f environment-dev.yml
34- source activate ${ENVNAME}
35+ conda activate ${ENVNAME}
3536 fi
3637fi
3738
You can’t perform that action at this time.
0 commit comments