File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8585fi
8686
8787if [ -d " $APPDIR " /usr/conda ]; then
88- echo " Error: directory exists: $APPDIR /usr/conda"
89- exit 1
88+ echo " Warning: conda prefix directory exists: $APPDIR /usr/conda"
89+ echo " Please make sure you perform a clean build before releases to make sure your process works properly. "
9090fi
9191
9292ARCH=${ARCH:- x86_64}
@@ -118,7 +118,7 @@ bash "$CONDA_DOWNLOAD_DIR"/"$miniconda_installer_filename" -b -p "$APPDIR"/usr/c
118118. " $APPDIR " /usr/conda/bin/activate
119119
120120# we don't want to touch the system, therefore using a temporary home
121- mkdir _temp_home
121+ mkdir -p _temp_home
122122export HOME=$( readlink -f _temp_home)
123123
124124# conda-forge is used by many conda packages, therefore we'll add that channel by default
161161mkdir -p " $APPDIR " /usr/bin/
162162pushd " $APPDIR "
163163for i in usr/conda/bin/* ; do
164- ln -s ../../" $i " usr/bin/
164+ if [ -f usr/bin/" $( basename " $i " ) " ]; then
165+ echo " Warning: symlink exists, will not be touched: usr/bin/$i "
166+ else
167+ ln -s ../../" $i " usr/bin/
168+ fi
165169done
166170popd
167171
You can’t perform that action at this time.
0 commit comments