Skip to content

Commit

Permalink
Avoid raising EnvironmentLocationNotFound when trying to remove old c…
Browse files Browse the repository at this point in the history
…onda env
  • Loading branch information
leehart committed Nov 15, 2024
1 parent 27c48ab commit f29dd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ else
# Here we rebuild the environment from the unpinned requirements files,
# which is what a maintainer will do when they want to upgrade the pinned
# definition files.
conda env remove -v --name=$CONDANAME
conda env remove -v --name=$CONDANAME || true
echo "[mgenv] recreating $ENVPINNED"
echo "[mgenv] installing conda packages"
conda create --yes -v --strict-channel-priority $CHANNEL_OPTS --name $CONDANAME --file ${MGENVDIR}/requirements-conda.txt --file ${MGENVDIR}/requirements-compilers-${OS}.txt
Expand Down

0 comments on commit f29dd93

Please sign in to comment.