Skip to content

Commit

Permalink
Merge pull request #3571 from szhublox/noautoupdate
Browse files Browse the repository at this point in the history
webui.sh: no automatic git pull
  • Loading branch information
AUTOMATIC1111 committed Oct 29, 2022
2 parents d699720 + 6515ded commit e725474
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,14 @@ then
exit 1
fi

printf "\n%s\n" "${delimiter}"
printf "Clone or update stable-diffusion-webui"
printf "\n%s\n" "${delimiter}"
cd "${install_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/, aborting...\e[0m" "${install_dir}"; exit 1; }
if [[ -d "${clone_dir}" ]]
then
cd "${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; }
"${GIT}" pull
else
printf "\n%s\n" "${delimiter}"
printf "Clone stable-diffusion-webui"
printf "\n%s\n" "${delimiter}"
"${GIT}" clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git "${clone_dir}"
cd "${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; }
fi
Expand Down

0 comments on commit e725474

Please sign in to comment.