aboutsummaryrefslogtreecommitdiff
path: root/webui.sh
diff options
context:
space:
mode:
authorweidong <weidongkl@sina.com>2023-04-17 17:17:10 +0800
committerGitHub <noreply@github.com>2023-04-17 17:17:10 +0800
commit152ed34ccc603c77703ae3bcb3d570a32a8cc7d9 (patch)
tree36c45972152640ec1d626a80abbcefcf1e565356 /webui.sh
parent22bcc7be428c94e9408f589966c2040187245d81 (diff)
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-xwebui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.sh b/webui.sh
index 8cdad22d..07355eab 100755
--- a/webui.sh
+++ b/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)