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
2
webui.sh
2
webui.sh
@ -23,7 +23,7 @@ fi
|
|||||||
# Install directory without trailing slash
|
# Install directory without trailing slash
|
||||||
if [[ -z "${install_dir}" ]]
|
if [[ -z "${install_dir}" ]]
|
||||||
then
|
then
|
||||||
install_dir="/home/$(whoami)"
|
install_dir="${HOME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Name of the subdirectory (defaults to stable-diffusion-webui)
|
# Name of the subdirectory (defaults to stable-diffusion-webui)
|
||||||
|
Loading…
Reference in New Issue
Block a user