summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-14 23:10:53 +0800
committerruki <[email protected]>2023-09-14 23:10:53 +0800
commit92ab5604f06172d13ef8cde8fc880e202ceba61c (patch)
tree398b30b5f5a2f808b2b33e172b6925600eeeab6f
parentaa25477748c5ea2574e8dcef8b7d8b5d7cbfd6d7 (diff)
fix outputdir for pull
-rw-r--r--xmake/modules/private/service/remote_build/client.lua3
1 files changed, 3 insertions, 0 deletions
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