aboutsummaryrefslogtreecommitdiffstats
path: root/webui.sh
diff options
context:
space:
mode:
authorbrkirch <brkirch@users.noreply.github.com>2022-12-03 07:28:53 +0000
committerbrkirch <brkirch@users.noreply.github.com>2022-12-03 11:44:59 +0000
commit5ec8981df46ff6e678c09dd2c1bf4d873ac22a46 (patch)
tree5b1f13cb4e42ec35ab7a103fbce7148365bc22b6 /webui.sh
parentbef36597cc46671eeb2041b0343bd5e183883eb7 (diff)
downloadstable-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-xwebui.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/webui.sh b/webui.sh
index 5f48741f..683c97d3 100755
--- a/webui.sh
+++ b/webui.sh
@@ -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 ]]