diff options
author | Zeithrold <41533799+zeithrold@users.noreply.github.com> | 2022-10-16 07:13:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-16 07:13:18 +0000 |
commit | 863e9efc19d2811f1db5055be8e346781df3f7ce (patch) | |
tree | 4361b774c4ff22c98746321a33f8df7c0bb1a9fc /webui.sh | |
parent | 9258a33e3755c76922cd47a03cd59419b6426304 (diff) | |
download | stable-diffusion-webui-gfx803-863e9efc19d2811f1db5055be8e346781df3f7ce.tar.gz stable-diffusion-webui-gfx803-863e9efc19d2811f1db5055be8e346781df3f7ce.tar.bz2 stable-diffusion-webui-gfx803-863e9efc19d2811f1db5055be8e346781df3f7ce.zip |
Pull out some of URL to Env Variable (#2578)
* moved repository url to changeable environment variable
* move stable diffusion repo itself to env
* added missing env
* Remove default URL
Co-authored-by: AUTOMATIC1111 <16777216c@gmail.com>
Diffstat (limited to 'webui.sh')
-rwxr-xr-x | webui.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -41,6 +41,11 @@ then venv_dir="venv" fi +if [[ -z "${STABLE_DIFFUSION_WEBUI_REPO}" ]] +then + STABLE_DIFFUSION_WEBUI_REPO="https://github.com/AUTOMATIC1111/stable-diffusion-webui.git" +fi + if [[ -z "${LAUNCH_SCRIPT}" ]] then LAUNCH_SCRIPT="launch.py" @@ -111,7 +116,7 @@ then cd "${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; } "${GIT}" pull else - "${GIT}" clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git "${clone_dir}" + "${GIT}" clone "${STABLE_DIFFUSION_WEBUI_REPO}" "${clone_dir}" cd "${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; } fi |