From 92ab5604f06172d13ef8cde8fc880e202ceba61c Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Sep 2023 23:10:53 +0800 Subject: fix outputdir for pull --- xmake/modules/private/service/remote_build/client.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmake/modules/private/service/remote_build/client.lua b/xmake/modules/private/service/remote_build/client.lua index 9ef7faf4d..05dc142c4 100644 --- a/xmake/modules/private/service/remote_build/client.lua +++ b/xmake/modules/private/service/remote_build/client.lua @@ -249,6 +249,9 @@ function remote_build_client:pull(filepattern, outputdir) if not filepattern:find("*", 1, true) and os.isdir(filepattern) then filepattern = path.join(filepattern, "**") end + if not outputdir then + outputdir = os.curdir() + end cprint("${dim}%s: pull %s in %s:%d ..", self, filepattern, addr, port) local stream = socket_stream(sock, {send_timeout = self:send_timeout(), recv_timeout = self:recv_timeout()}) if stream:send_msg(message.new_pull(session_id, filepattern, {token = self:token()})) and stream:flush() then -- cgit v1.3.1