aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweidong <weidongkl@sina.com>2023-04-17 09:17:10 +0000
committerGitHub <noreply@github.com>2023-04-17 09:17:10 +0000
commit152ed34ccc603c77703ae3bcb3d570a32a8cc7d9 (patch)
tree36c45972152640ec1d626a80abbcefcf1e565356
parent22bcc7be428c94e9408f589966c2040187245d81 (diff)
downloadstable-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
-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)