2022-10-12 11:08:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "$0" == "bash" ]; then
|
2022-10-12 16:45:38 +00:00
|
|
|
INSTALL_ENV_DIR="$(pwd)/installer_files/env"
|
|
|
|
if [ -e "$INSTALL_ENV_DIR" ]; then export PATH="$PATH;$INSTALL_ENV_DIR/bin"; fi
|
2022-10-12 11:08:06 +00:00
|
|
|
|
2022-10-13 04:27:14 +00:00
|
|
|
CONDA_BASEPATH=$(conda info --base)
|
|
|
|
source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains about 'shell not initialized' (needed when running in a script)
|
|
|
|
|
2022-10-12 16:45:38 +00:00
|
|
|
conda activate invokeai
|
2022-10-12 11:08:06 +00:00
|
|
|
|
2022-10-12 16:45:38 +00:00
|
|
|
echo "Ready to dream.."
|
2022-10-12 11:08:06 +00:00
|
|
|
else
|
|
|
|
bash --init-file invoke.sh
|
|
|
|
fi
|