Add Conda env deactivation to installer scripts

Avoids conflicts with existing Conda installations
This commit is contained in:
jllllll 2023-09-21 21:52:29 -05:00
parent 6bbfc40d10
commit cd1049eded
No known key found for this signature in database
GPG key ID: 7FCD00C417935797
10 changed files with 28 additions and 4 deletions

4
wsl.sh
View file

@ -15,8 +15,8 @@ read -n1 -p "Continue the installer anyway? [y,n]" EXIT_PROMPT
if ! [[ $EXIT_PROMPT == "Y" || $EXIT_PROMPT == "y" ]]; then exit; fi
fi
# deactivate any currently active conda env
conda deactivate 2> /dev/null
# deactivate existing conda envs as needed to avoid conflicts
{ conda deactivate && conda deactivate && conda deactivate; } 2> /dev/null
# config unlike other scripts, can't use current directory due to file IO bug in WSL, needs to be in virtual drive
INSTALL_DIR="$HOME/text-gen-install"