Unverified Commit 152ed34c authored by weidong's avatar weidong Committed by GitHub
Browse files

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
parent 22bcc7be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)