From 11004db9fc51a552107ae6d54fbaef8f37694e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 13 Dec 2018 12:19:33 +0800 Subject: =?UTF-8?q?=E8=B7=B3=E8=BF=87=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/publish.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/publish.lua b/server/publish.lua index 5871bbec..76d36472 100644 --- a/server/publish.lua +++ b/server/publish.lua @@ -27,7 +27,9 @@ local function copyFiles(out) local function copy(relative, mode) local source = EXTENSION / relative local target = out / relative - assert(fs.exists(source)) + if not fs.exists(source) then + return + end if fs.is_directory(source) then fs.create_directory(target) if mode == true then -- cgit v1.2.3