fix(installer): conditional syntax for old bash in create_installer.sh

This commit is contained in:
psychedelicious 2024-02-09 15:16:09 +11:00 committed by Kent Keirsey
parent ea4d071503
commit 6f368395df

View File

@ -13,7 +13,7 @@ function git_show {
git show -s --format=oneline --abbrev-commit "$1" | cat git show -s --format=oneline --abbrev-commit "$1" | cat
} }
if [[ -v "VIRTUAL_ENV" ]]; then if [[ ! -z "${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 "${BRED}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}"