From 05a909849e5fd771e65c301d056cf32e7cab7ae0 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 7 Feb 2023 11:50:53 +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 a57251a..9c5ec76 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) && targetSymLink.endsWith('/')) { + if (!fs.existsSync(targetSymLink.split('/').slice(1).join('/'))) { fs.mkdirSync(targetSymLink, { recursive: true }); }