From e662c41730db50d1184f8c664aee2faea2d146cf Mon Sep 17 00:00:00 2001 From: Kendal Cormany Date: Mon, 18 Nov 2024 20:58:21 -0700 Subject: [PATCH] Now throws an error. --- scripts/todesktop/postInstall.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/todesktop/postInstall.js b/scripts/todesktop/postInstall.js index e9353abf..c33d095f 100644 --- a/scripts/todesktop/postInstall.js +++ b/scripts/todesktop/postInstall.js @@ -13,8 +13,7 @@ async function postInstall() { console.log('After Yarn Install ' , os.platform()); if (fs.existsSync(path.join('./assets','ComfyUI'))) { - console.log('Comfy Already Installed, Skipping.'); - return; + throw new Error("You are trying to install ComfyCLI when it has already been installed!"); } if (os.platform() === "win32")