Skip to content

Commit a53db99

Browse files
committed
feat: detects an existing mellea environment and try to remove it
1 parent 7892c4a commit a53db99

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

conda/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ while getopts "h" OPTNAME ; do
4747
esac
4848
done
4949

50+
if $CONDA env list | grep -q mellea
51+
then
52+
echo "An existing mellea environment was found."
53+
$CONDA env remove -n mellea
54+
fi
55+
56+
5057
# note:
5158
# this is a portable way (works in linux and osx) to get the directory of this script.
5259
# readlink -ef may not work on osx.

0 commit comments

Comments
 (0)