From 1d3c43b67f833f721c703eaffa2133c9ef57d8cd Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 13 Oct 2022 15:20:29 +0530 Subject: [PATCH] Add a pause before the script ends --- installer/install.bat | 4 +--- invoke.bat | 5 ++--- update.bat | 5 ++--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/installer/install.bat b/installer/install.bat index 630fd8037c..ecb23ac438 100644 --- a/installer/install.bat +++ b/installer/install.bat @@ -9,9 +9,6 @@ @rem This enables a user to install this project without manually installing conda and git. -@rem prevent the window from closing after an error -if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit ) - @rem config set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba set INSTALL_ENV_DIR=%cd%\installer_files\env @@ -76,3 +73,4 @@ echo "Please follow the steps at https://invoke-ai.github.io/InvokeAI/installati @rem it would be nice if the weights downloaded automatically, and didn't need the user to do this manually. +pause diff --git a/invoke.bat b/invoke.bat index 4689153ae8..8d23ab660b 100644 --- a/invoke.bat +++ b/invoke.bat @@ -1,11 +1,10 @@ @echo off -@rem prevent the window from closing after running the commands -if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit ) - set INSTALL_ENV_DIR=%cd%\installer_files\env set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%PATH% call conda activate invokeai echo Ready to dream.. + +cmd /k diff --git a/update.bat b/update.bat index e81a426faf..426c43d9ba 100644 --- a/update.bat +++ b/update.bat @@ -1,8 +1,5 @@ @echo off -@rem prevent the window from closing after an error -if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit ) - set INSTALL_ENV_DIR=%cd%\installer_files\env set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%PATH% @@ -12,3 +9,5 @@ if exist ".git" ( ) conda env update + +pause