feat(installer): make active venv error red instead of yellow

This commit is contained in:
psychedelicious 2023-12-10 13:11:44 +11:00
parent 49b74d189e
commit e9d7e6bdd5

View File

@ -6,6 +6,7 @@ BCYAN="\e[1;36m"
BBLUE="\e[1;34m" BBLUE="\e[1;34m"
BYELLOW="\e[1;33m" BYELLOW="\e[1;33m"
BGREEN="\e[1;32m" BGREEN="\e[1;32m"
BRED="\e[1;31m"
RED="\e[31m" RED="\e[31m"
RESET="\e[0m" RESET="\e[0m"
@ -40,7 +41,7 @@ fi
if [[ -v "VIRTUAL_ENV" ]]; then if [[ -v "VIRTUAL_ENV" ]]; then
# we can't just call 'deactivate' because this function is not exported # we can't just call 'deactivate' because this function is not exported
# to the environment of this script from the bash process that runs the script # to the environment of this script from the bash process that runs the script
echo -e "${BYELLOW}A virtual environment is activated. Please deactivate it before proceeding.${RESET}" echo -e "${BRED}A virtual environment is activated. Please deactivate it before proceeding.${RESET}"
exit -1 exit -1
fi fi