Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
e338f414
Commit
e338f414
authored
Jul 08, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jul 08, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11592 from onyasumi/launchscript-directory
Fixed launch script to be runnable from any directory
parents
3a294a08
e33e2c51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
webui.sh
webui.sh
+7
-5
No files found.
webui.sh
View file @
e338f414
...
...
@@ -4,26 +4,28 @@
# change the variables in webui-user.sh instead #
#################################################
SCRIPT_DIR
=
$(
cd
--
"
$(
dirname
--
"
${
BASH_SOURCE
[0]
}
"
)
"
&> /dev/null
&&
pwd
)
# If run from macOS, load defaults from webui-macos-env.sh
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
if
[[
-f
webui-macos-env.sh
]]
if
[[
-f
"
$SCRIPT_DIR
"
/
webui-macos-env.sh
]]
then
source
.
/webui-macos-env.sh
source
"
$SCRIPT_DIR
"
/webui-macos-env.sh
fi
fi
# Read variables from webui-user.sh
# shellcheck source=/dev/null
if
[[
-f
webui-user.sh
]]
if
[[
-f
"
$SCRIPT_DIR
"
/
webui-user.sh
]]
then
source
.
/webui-user.sh
source
"
$SCRIPT_DIR
"
/webui-user.sh
fi
# Set defaults
# Install directory without trailing slash
if
[[
-z
"
${
install_dir
}
"
]]
then
install_dir
=
"
$
(
pwd
)
"
install_dir
=
"
$
SCRIPT_DIR
"
fi
# Name of the subdirectory (defaults to stable-diffusion-webui)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment