浏览代码

improve test

ruki 1 年之前
父节点
当前提交
c7a62145f4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      scripts/test.lua

+ 3 - 1
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")