From 2352517982f189c1f7fb01e911239f7048d3f99c Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 7 Feb 2023 11:46:10 +0000 Subject: [PATCH] Update bootstrap.js --- bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.js b/bootstrap.js index dbe2997..cc4b147 100755 --- a/bootstrap.js +++ b/bootstrap.js @@ -140,7 +140,7 @@ for (const symLink of symLinks) { const sourceSymLink = process.cwd() + '/' + symLink; console.log(`Creating symlink between ${sourceSymLink} to ${targetSymLink}`); - if (!fs.existsSync(targetSymLink) && fs.lstatSync(targetSymLink).isDirectory()) { + if (!fs.existsSync(targetSymLink) && targetSymLink.endsWith('/')) { fs.mkdirSync(targetSymLink, { recursive: true }); }