Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webui.sh Update: Fixed Git check for users running Stable Diffusion within their personal repositories. #14632

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,20 @@ then
exit 1
fi

if [[ -d .git ]]
then
printf "\n%s\n" "${delimiter}"
printf "Repo already cloned, using it as install directory"
printf "\n%s\n" "${delimiter}"
if [[ -d stable-diffusion-webui ]]; then
message="Folder 'stable-diffusion-webui' exists, using it as install directory"
install_dir="${install_dir}/stable-diffusion-webui"
clone_dir="${clone_dir}/stable-diffusion-webui"
elif [[ -d .git ]]; then
message="Repo already cloned, using it as install directory"
install_dir="${PWD}/../"
clone_dir="${PWD##*/}"
fi

if [[ -n "$message" ]]; then
printf "\n%s\n%s\n%s\n" "${delimiter}" "$message" "${delimiter}"
fi

# Check prerequisites
gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display")
case "$gpu_info" in
Expand Down