mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(installer): conditional syntax for old bash in create_installer.sh
This commit is contained in:
parent
ea4d071503
commit
6f368395df
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user