diff options
author | brkirch <brkirch@users.noreply.github.com> | 2022-12-03 07:28:53 +0000 |
---|---|---|
committer | brkirch <brkirch@users.noreply.github.com> | 2022-12-03 11:44:59 +0000 |
commit | 5ec8981df46ff6e678c09dd2c1bf4d873ac22a46 (patch) | |
tree | 5b1f13cb4e42ec35ab7a103fbce7148365bc22b6 /webui.sh | |
parent | bef36597cc46671eeb2041b0343bd5e183883eb7 (diff) | |
download | stable-diffusion-webui-gfx803-5ec8981df46ff6e678c09dd2c1bf4d873ac22a46.tar.gz stable-diffusion-webui-gfx803-5ec8981df46ff6e678c09dd2c1bf4d873ac22a46.tar.bz2 stable-diffusion-webui-gfx803-5ec8981df46ff6e678c09dd2c1bf4d873ac22a46.zip |
Revert most launch.py changes, add mac user script
Adds an addition file to read environment variables from when the webui.sh is run from macOS.
Diffstat (limited to 'webui.sh')
-rwxr-xr-x | webui.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4,6 +4,14 @@ # change the variables in webui-user.sh instead # ################################################# +# If run from macOS, load defaults from webui-macos-env.sh +if [[ "$OSTYPE" == "darwin"* ]]; then + if [[ -f webui-macos-env.sh ]] + then + source ./webui-macos-env.sh + fi +fi + # Read variables from webui-user.sh # shellcheck source=/dev/null if [[ -f webui-user.sh ]] |