Fix a transient bug in the installer code (windows) where a script overwriting itself would cause problems

This commit is contained in:
cmdr2 2022-09-09 17:24:30 +05:30
parent b14523ecfa
commit 0d33964a03
2 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,9 @@
)
@xcopy sd-ui-files\ui ui /s /i /Y
@xcopy sd-ui-files\scripts scripts /s /i /Y
@copy sd-ui-files\scripts\on_sd_start.bat scripts\ /Y
@copy "sd-ui-files\scripts\Start Stable Diffusion UI.cmd" . /Y
@call scripts\on_sd_start.bat
@pause

View File

@ -1,5 +1,7 @@
@echo off
@copy sd-ui-files\scripts\on_env_start.bat scripts\ /Y
@>nul grep -c "sd_git_cloned" scripts\install_status.txt
@if "%ERRORLEVEL%" EQU "0" (
@echo "Stable Diffusion's git repository was already installed. Updating.."