From bcc361fcee9277dedfdcdd031d058c4de5322c73 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 10 Apr 2024 22:42:38 +0800 Subject: fix archive --- xmake/modules/utils/archive/archive.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xmake/modules/utils/archive/archive.lua') diff --git a/xmake/modules/utils/archive/archive.lua b/xmake/modules/utils/archive/archive.lua index 59933ae68..f91aa9d7f 100644 --- a/xmake/modules/utils/archive/archive.lua +++ b/xmake/modules/utils/archive/archive.lua @@ -296,7 +296,7 @@ function _archive(archivefile, inputfiles, extension, archivers, opt) } } if ok then - return + return true end end raise("cannot archive %s, %s!", path.filename(archivefile), errors or "archivers not found!") @@ -319,12 +319,8 @@ end -- @param options the options, e.g.. {curdir = "/tmp", recurse = true, compress = "fastest|faster|default|better|best", excludes = {"*/dir/*", "dir/*"}} -- function main(archivefile, inputfiles, opt) - - -- init inputfiles - inputfiles = inputfiles or os.curdir() - - -- init options opt = opt or {} + inputfiles = inputfiles or os.curdir() if opt.recurse == nil then opt.recurse = true end -- cgit v1.3.1