mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
Open bash conditionally in the dev console on unix
This commit is contained in:
parent
f20014660d
commit
9de91d3021
@ -1,9 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export SD_BASE_DIR=`pwd`
|
if [ "$0" == "bash" ]; then
|
||||||
export MAMBA_ROOT_PREFIX="$SD_BASE_DIR/env/mamba"
|
export SD_BASE_DIR=`pwd`
|
||||||
export INSTALL_ENV_DIR="$SD_BASE_DIR/env/installer_env"
|
export MAMBA_ROOT_PREFIX="$SD_BASE_DIR/env/mamba"
|
||||||
|
export INSTALL_ENV_DIR="$SD_BASE_DIR/env/installer_env"
|
||||||
|
|
||||||
eval "$($MAMBA_ROOT_PREFIX/micromamba shell hook -s posix)"
|
eval "$($MAMBA_ROOT_PREFIX/micromamba shell hook -s posix)"
|
||||||
|
|
||||||
micromamba activate "$INSTALL_ENV_DIR"
|
micromamba activate "$INSTALL_ENV_DIR"
|
||||||
|
else
|
||||||
|
bash --init-file open_dev_console.sh
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user