diff --git a/source_installer/invoke.sh.in b/source_installer/invoke.sh.in index bc9e8a5f4f8..7b0bd620233 100755 --- a/source_installer/invoke.sh.in +++ b/source_installer/invoke.sh.in @@ -11,10 +11,10 @@ source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains abou conda activate invokeai # set required env var for torch on mac MPS -if [ "$(uname -s)" == "Darwin" ]; then - export PYTORCH_ENABLE_MPS_FALLBACK=1 -fi - +if [ "$(uname -s)" == "Darwin" ]; then + export PYTORCH_ENABLE_MPS_FALLBACK=1 +fi + if [ "$0" != "bash" ]; then echo "Do you want to generate images using the" echo "1. command-line"