From fa2cad5d282df45b4422157a5bedadf4d3e48900 Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Fri, 2 Dec 2022 14:37:16 -0500 Subject: [PATCH 1/2] (installer) fix syntax error in invoke.sh.in --- source_installer/invoke.sh.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source_installer/invoke.sh.in b/source_installer/invoke.sh.in index bc9e8a5f4f8..bcc651f6654 100755 --- a/source_installer/invoke.sh.in +++ b/source_installer/invoke.sh.in @@ -11,9 +11,9 @@ 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" From 1a9b899622aff767f451accb498bcb3d532a4cd4 Mon Sep 17 00:00:00 2001 From: Kevin Turner <83819+keturn@users.noreply.github.com> Date: Fri, 2 Dec 2022 12:42:14 -0800 Subject: [PATCH 2/2] fix(invoke.sh.in): remove additional mystery character --- source_installer/invoke.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source_installer/invoke.sh.in b/source_installer/invoke.sh.in index bcc651f6654..7b0bd620233 100755 --- a/source_installer/invoke.sh.in +++ b/source_installer/invoke.sh.in @@ -14,7 +14,7 @@ conda activate invokeai 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"