From 5ccc48a1728d68ceb53aeea45a451ecfc4142d52 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 04 Jan 2024 19:05:05 +0000
Subject: [PATCH] style: div -> li for explorer
---
quartz/cli/handlers.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js
index 586881a..37762a4 100644
--- a/quartz/cli/handlers.js
+++ b/quartz/cli/handlers.js
@@ -113,7 +113,10 @@
}
}
- await fs.promises.unlink(path.join(contentFolder, ".gitkeep"))
+ const gitkeepPath = path.join(contentFolder, ".gitkeep")
+ if (fs.existsSync(gitkeepPath)) {
+ await fs.promises.unlink(gitkeepPath)
+ }
if (setupStrategy === "copy" || setupStrategy === "symlink") {
let originalFolder = sourceDirectory
--
Gitblit v1.10.0