mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 17:55:09 +01:00
deactivate any pre-activated conda environments before installing
This commit is contained in:
parent
0d38c8ae8f
commit
538dcec348
@ -6,6 +6,11 @@ cp sd-ui-files/scripts/bootstrap.sh scripts/
|
|||||||
CONDA_BASEPATH=$(conda info --base)
|
CONDA_BASEPATH=$(conda info --base)
|
||||||
source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains about 'shell not initialized' (needed when running in a script)
|
source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains about 'shell not initialized' (needed when running in a script)
|
||||||
|
|
||||||
|
# deactivate any pre-activated conda environments
|
||||||
|
for i in $(seq ${CONDA_SHLVL}); do
|
||||||
|
conda deactivate
|
||||||
|
done
|
||||||
|
|
||||||
# remove the old version of the dev console script, if it's still present
|
# remove the old version of the dev console script, if it's still present
|
||||||
if [ -e "open_dev_console.sh" ]; then
|
if [ -e "open_dev_console.sh" ]; then
|
||||||
rm "open_dev_console.sh"
|
rm "open_dev_console.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user