diff options
author | weidong <weidongkl@sina.com> | 2023-04-17 09:17:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 09:17:10 +0000 |
commit | 152ed34ccc603c77703ae3bcb3d570a32a8cc7d9 (patch) | |
tree | 36c45972152640ec1d626a80abbcefcf1e565356 /webui.sh | |
parent | 22bcc7be428c94e9408f589966c2040187245d81 (diff) | |
download | stable-diffusion-webui-gfx803-152ed34ccc603c77703ae3bcb3d570a32a8cc7d9.tar.gz stable-diffusion-webui-gfx803-152ed34ccc603c77703ae3bcb3d570a32a8cc7d9.tar.bz2 stable-diffusion-webui-gfx803-152ed34ccc603c77703ae3bcb3d570a32a8cc7d9.zip |
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
Diffstat (limited to 'webui.sh')
-rwxr-xr-x | webui.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |