From c7a62145f4132ef885a291f51109d60a4241fe92 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 8 Nov 2023 00:25:16 +0800 Subject: [PATCH] improve test --- scripts/test.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test.lua b/scripts/test.lua index 1ab18c98e..699e445fc 100644 --- a/scripts/test.lua +++ b/scripts/test.lua @@ -230,7 +230,9 @@ function main(...) os.cd("test") print(os.curdir()) -- do action for remote? - os.exec("xmake service --disconnect") + if os.isdir("xmake-repo") then + os.exec("xmake service --disconnect") + end if argv.remote then os.tryrm("xmake-repo") os.cp(path.join(repodir, "packages"), "xmake-repo/packages")