Hello to every script's lover.
I wrote this little script to start "stable diffusion" automatically. It works great except for the fact that when it has to execute the command "bash",it won't execute all the commands below it. What's the trick to make it goes further ? thanks.
I wrote this little script to start "stable diffusion" automatically. It works great except for the fact that when it has to execute the command "bash",it won't execute all the commands below it. What's the trick to make it goes further ? thanks.
Code:
if ! kldstat | grep nvidia | grep -q "^nvidia"; then
echo "nvidia kernel modules already loaded"
else
echo "nvidia kernel modules is going to be loaded"
kldload nvidia-modeset
fi
---> bash (this is the last command it executes)
source /home/marietto/miniconda3/etc/profile.d/conda.sh
conda activate
cd /compat/ubuntu/home/marietto/stable-diffusion-webui
conda env update --file environment-wsl2.yaml --prune
conda activate automatic
LD_PRELOAD=/compat/Files/dummy-uvm.so python3 launch.py