mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-24 19:01:06 -08:00
fix install_dir error
When the user's home directory and username are inconsistent, an error message stating that the directory cannot be found will appear. Directly default the installation directory to the user's home directory
This commit is contained in:
parent
22bcc7be42
commit
152ed34ccc
1 changed files with 1 additions and 1 deletions
2
webui.sh
2
webui.sh
|
|
@ -23,7 +23,7 @@ fi
|
|||
# Install directory without trailing slash
|
||||
if [[ -z "${install_dir}" ]]
|
||||
then
|
||||
install_dir="/home/$(whoami)"
|
||||
install_dir="${HOME}"
|
||||
fi
|
||||
|
||||
# Name of the subdirectory (defaults to stable-diffusion-webui)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue