From aa93a3497dbd8b8f5410b88c591f5543a20f5621 Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 26 Apr 2021 04:23:42 +0800 Subject: [PATCH] Delete output directory before force publishing --- publish.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/publish.el b/publish.el index 4e05a86..2f83bad 100755 --- a/publish.el +++ b/publish.el @@ -279,6 +279,9 @@ PROJECT is the current project." (when force (warn! "Force flag set")) +(when force + (delete-directory "./html" t)) + (org-publish "This Month in Org" force) (section! "Uploading")