fix: change to the correct working directory

changes to the directory containing `start.sh` prior to activating the conda environment

this allows you to run the program without first changing to the correct directory, eg: `$ ~/bin/stable-diffusion-ui/start.sh`
This commit is contained in:
Michael Nahkies 2022-09-10 16:34:06 +01:00 committed by cmdr2
parent 0b678b1f16
commit 450fb2553c

View File

@ -1,5 +1,7 @@
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
# set legacy installer's PATH, if it exists
if [ -e "installer" ]; then export PATH="$(pwd)/installer/bin:$PATH"; fi