From 5a2299e67d7b789acb1420121c1c2fe360402d41 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 7 Feb 2023 11:38:17 +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 8a59e84..fc7d0d2 100755 --- a/bootstrap.js +++ b/bootstrap.js @@ -138,7 +138,7 @@ symLinks = symLinks.concat(childPaths); for (const symLink of symLinks) { const targetSymLink = HOME + (symLink.split('/').slice(1).join('/')) const sourceSymLink = process.cwd() + '/' + symLink; - if (!fs.existsSync(targetSymLink)) { + if (!fs.existsSync(targetSymLink) && fs.lstatSync(targetSymLink).isDirectory()) { fs.mkdirSync(targetSymLink, { recursive: true }); }