From 939dd0b2079be371733893f8d1611bace555883d Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 26 Sep 2022 23:02:03 +0530 Subject: [PATCH] Empty the post-activate hook only if it exists --- scripts/Start Stable Diffusion UI.cmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Start Stable Diffusion UI.cmd b/scripts/Start Stable Diffusion UI.cmd index f3af626c..2f3e32f9 100644 --- a/scripts/Start Stable Diffusion UI.cmd +++ b/scripts/Start Stable Diffusion UI.cmd @@ -1,7 +1,9 @@ @echo off @REM Delete the post-activate hook from the old installer -echo. > installer\etc\conda\activate.d\post_activate.bat +if exist "installer\etc\conda\activate.d\post_activate.bat" ( + echo. > installer\etc\conda\activate.d\post_activate.bat +) @call installer\Scripts\activate.bat