From e41ae86ad7835979963b6ca590c43bf32b93ed42 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Fri, 28 Aug 2020 12:23:54 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Program=20exits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b8de642..1fa47fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,7 @@ const main = async () => { }); // Paths - if (fs.existsSync(svgsDir)) { + if (!fs.existsSync(svgsDir)) { console.log("Source .svg files not found"); } if (!fs.existsSync(bitmapsDir)) { @@ -99,6 +99,7 @@ const main = async () => { } console.log(`\nBitmaps stored at ${bitmapsDir}\n\nšŸŽ‰ Render Done.`); + process.exit(0); } catch (error) { console.error(error); process.exit(1);