From c3ac670d1fec9aada4ea2947116b40a2ff1508f3 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 7 Feb 2023 11:47:18 +0000 Subject: [PATCH] Update bootstrap.js --- bootstrap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap.js b/bootstrap.js index cc4b147..a57251a 100755 --- a/bootstrap.js +++ b/bootstrap.js @@ -143,8 +143,11 @@ for (const symLink of symLinks) { if (!fs.existsSync(targetSymLink) && targetSymLink.endsWith('/')) { fs.mkdirSync(targetSymLink, { recursive: true }); } + + if (fs.existsSync(targetSymLink)) { + fs.rmSync(targetSymLink); + } - fs.rmSync(targetSymLink); fs.symlinkSync(sourceSymLink, targetSymLink); }